You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
chore: enhance type safety with detailed PHPDoc annotations and stricter PHPStan validations
This commit is contained in:
@@ -103,7 +103,10 @@ final class Envelope implements NotificationInterface
|
||||
*/
|
||||
public function get(string $type): ?StampInterface
|
||||
{
|
||||
return $this->stamps[$type] ?? null; // @phpstan-ignore-line
|
||||
/** @var T|null $stamp */
|
||||
$stamp = $this->stamps[$type] ?? null;
|
||||
|
||||
return $stamp;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user