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 11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \CacheWarmer ;
13
13
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
-
18
14
use Symfony \Component \ClassLoader \ClassCollectionLoader ;
19
15
use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
20
16
@@ -31,6 +27,10 @@ class ClassCacheCacheWarmer implements CacheWarmerInterface
31
27
32
28
public function __construct (array $ declaredClasses = null )
33
29
{
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
+
34
34
$ this ->declaredClasses = $ declaredClasses ;
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments