These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Doctrine\ODM\MongoDB\Event; |
||
6 | |||
7 | use Doctrine\Common\Persistence\ObjectManager; |
||
8 | use const E_USER_DEPRECATED; |
||
9 | use function sprintf; |
||
10 | use function trigger_error; |
||
11 | |||
12 | /** |
||
13 | * Provides event arguments for the onFlush event. |
||
14 | * |
||
15 | * @final |
||
16 | */ |
||
17 | View Code Duplication | class OnFlushEventArgs extends ManagerEventArgs |
|
18 | { |
||
19 | 5 | public function __construct(ObjectManager $objectManager) |
|
20 | { |
||
21 | 5 | if (self::class !== static::class) { |
|
22 | @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED); |
||
0 ignored issues
–
show
|
|||
23 | } |
||
24 | 5 | parent::__construct($objectManager); |
|
25 | 5 | } |
|
26 | } |
||
27 |
If you suppress an error, we recommend checking for the error condition explicitly: