* This file is part of the XiideaEasyAuditBundle package.
5
*
6
* (c) Xiidea <http://www.xiidea.net>
7
*
8
* This source file is subject to the MIT license that is bundled
9
* with this source code in the file LICENSE.
10
*/
11
12
namespace Xiidea\EasyAuditBundle\Annotation;
13
14
@trigger_error(sprintf('The "%s" annotation is deprecated since version 1.4.10. Use "%s" instead.', ORMSubscribedEvents::class, SubscribeDoctrineEvents::class), E_USER_DEPRECATED);
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
If you suppress an error, we recommend checking for the error condition explicitly: