Skip to content

Commit 1e62ed3

Browse files
greeflasondrejmirtes
authored andcommitted
Add stubs for messenger component
1 parent 7d8ac24 commit 1e62ed3

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

extension.neon

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ parameters:
2424
- stubs/Symfony/Component/HttpFoundation/HeaderBag.stub
2525
- stubs/Symfony/Component/HttpFoundation/ParameterBag.stub
2626
- stubs/Symfony/Component/HttpFoundation/Session.stub
27+
- stubs/Symfony/Component/Messenger/StampInterface.stub
28+
- stubs/Symfony/Component/Messenger/Envelope.stub
2729
- stubs/Symfony/Component/Process/Process.stub
2830
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
2931
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Symfony\Component\Messenger;
4+
5+
use Symfony\Component\Messenger\Stamp\StampInterface;
6+
7+
final class Envelope
8+
{
9+
/**
10+
* @template T of \Symfony\Component\Messenger\Stamp\StampInterface
11+
* @phpstan-param class-string<T> $stampFqcn
12+
* @phpstan-return T|null
13+
*/
14+
public function last(string $stampFqcn): ?StampInterface
15+
{
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Messenger\Stamp;
4+
5+
interface StampInterface
6+
{
7+
}

0 commit comments

Comments
 (0)