File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \CacheWarmer ;
1313
14- if (PHP_VERSION_ID >= 70000 ) {
15- @trigger_error ('The ' .__NAMESPACE__ .'\ClassCacheCacheWarmer class is deprecated since version 3.3 and will be removed in 4.0. ' , E_USER_DEPRECATED );
16- }
17-
1814use Symfony \Component \ClassLoader \ClassCollectionLoader ;
1915use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
2016
@@ -31,6 +27,10 @@ class ClassCacheCacheWarmer implements CacheWarmerInterface
3127
3228 public function __construct (array $ declaredClasses = null )
3329 {
30+ if (PHP_VERSION_ID >= 70000 ) {
31+ @trigger_error ('The ' .__CLASS__ .' class is deprecated since version 3.3 and will be removed in 4.0. ' , E_USER_DEPRECATED );
32+ }
33+
3434 $ this ->declaredClasses = $ declaredClasses ;
3535 }
3636
You can’t perform that action at this time.
0 commit comments