Skip to content

Commit 348d50f

Browse files
committed
cut: Remove check for older symfony version
1 parent 153a3cb commit 348d50f

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,17 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Access to an undefined property Nyholm\\\\BundleTest\\\\AppKernel\\:\\:\\$rootDir\\.$#"
5-
count: 1
6-
path: src/AppKernel.php
7-
83
-
94
message: "#^PHPDoc tag @param references unknown parameter\\: \\$bundle$#"
105
count: 1
116
path: src/AppKernel.php
127

13-
-
14-
message: "#^Call to method reset\\(\\) on an unknown class Symfony\\\\Component\\\\DependencyInjection\\\\ResettableContainerInterface\\.$#"
15-
count: 1
16-
path: src/BaseBundleTestCase.php
17-
18-
-
19-
message: "#^Class Symfony\\\\Component\\\\DependencyInjection\\\\ResettableContainerInterface not found\\.$#"
20-
count: 1
21-
path: src/BaseBundleTestCase.php
22-
238
-
249
message: "#^PHPDoc tag @param references unknown parameter\\: \\$options$#"
2510
count: 1
2611
path: src/BaseBundleTestCase.php
2712

2813
-
29-
message: "#^Comparison operation \"\\>\\=\" between 50306 and 30300 is always true\\.$#"
30-
count: 1
31-
path: src/config/parameters.php
32-
33-
-
34-
message: "#^Comparison operation \"\\>\\=\" between 50306 and 50100 is always true\\.$#"
14+
message: "#^Comparison operation \"\\>\\=\" between 40409 and 50100 is always false\\.$#"
3515
count: 1
3616
path: src/config/parameters.php
3717

src/config/parameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
// If symfony is greater than 3.3 and no annotations are installed, then disable it.
4-
if (\Symfony\Component\HttpKernel\Kernel::VERSION_ID >= 30300 && !class_exists('Doctrine\Common\Annotations\Annotation')) {
3+
// If annotations aren't installed, disable it.
4+
if (!class_exists('Doctrine\Common\Annotations\Annotation')) {
55
$container->loadFromExtension('framework', [
66
'annotations' => ['enabled' => false],
77
]);

0 commit comments

Comments
 (0)