chore: enhance type safety with detailed PHPDoc annotations and stricter PHPStan validations

This commit is contained in:
Younes ENNAJI
2024-10-13 21:39:22 +01:00
parent 89d8c2cb7a
commit 08b96bdd39
24 changed files with 1297 additions and 479 deletions
+4 -1
View File
@@ -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;
}
/**