|
1 | 1 | <?php |
| 2 | + |
2 | 3 | declare(strict_types=1); |
3 | 4 |
|
4 | 5 | namespace Arkitect\Tests\Unit\Analyzer; |
@@ -39,7 +40,7 @@ class Cat implements AnInterface |
39 | 40 | EOF; |
40 | 41 |
|
41 | 42 | /** @var FileParser $fp */ |
42 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 43 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
43 | 44 | $fp->parse($code, 'relativePathName'); |
44 | 45 | $cd = $fp->getClassDescriptions(); |
45 | 46 |
|
@@ -84,7 +85,7 @@ class Cat implements AnInterface |
84 | 85 | EOF; |
85 | 86 |
|
86 | 87 | /** @var FileParser $fp */ |
87 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 88 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
88 | 89 | $fp->parse($code, 'relativePathName'); |
89 | 90 | $cd = $fp->getClassDescriptions(); |
90 | 91 |
|
@@ -120,7 +121,7 @@ class Cat extends Animal |
120 | 121 | EOF; |
121 | 122 |
|
122 | 123 | /** @var FileParser $fp */ |
123 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 124 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
124 | 125 | $fp->parse($code, 'relativePathName'); |
125 | 126 |
|
126 | 127 | $cd = $fp->getClassDescriptions()[1]; |
@@ -149,7 +150,7 @@ public function methodWithAnonymous(): void |
149 | 150 | EOF; |
150 | 151 |
|
151 | 152 | /** @var FileParser $fp */ |
152 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 153 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
153 | 154 | $fp->parse($code, 'relativePathName'); |
154 | 155 |
|
155 | 156 | $cd = $fp->getClassDescriptions()[1]; |
@@ -177,7 +178,7 @@ public function __construct(Request $request) |
177 | 178 | EOF; |
178 | 179 |
|
179 | 180 | /** @var FileParser $fp */ |
180 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 181 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
181 | 182 | $fp->parse($code, 'relativePathName'); |
182 | 183 | $cd = $fp->getClassDescriptions(); |
183 | 184 |
|
@@ -212,7 +213,7 @@ public function __construct(Request $request, ?Nullable $nullable) |
212 | 213 | EOF; |
213 | 214 |
|
214 | 215 | /** @var FileParser $fp */ |
215 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 216 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
216 | 217 | $fp->parse($code, 'relativePathName'); |
217 | 218 | $cd = $fp->getClassDescriptions(); |
218 | 219 |
|
@@ -847,7 +848,7 @@ public function getRequest(): Request //the violations is reported here |
847 | 848 | EOF; |
848 | 849 |
|
849 | 850 | /** @var FileParser $fp */ |
850 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 851 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
851 | 852 | $fp->parse($code, 'relativePathName'); |
852 | 853 | $cd = $fp->getClassDescriptions(); |
853 | 854 |
|
@@ -935,7 +936,7 @@ class MyClass |
935 | 936 | EOF; |
936 | 937 |
|
937 | 938 | /** @noinspection PhpUnhandledExceptionInspection */ |
938 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 939 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
939 | 940 | $fp->parse($code, 'relativePathName'); |
940 | 941 | $cd = $fp->getClassDescriptions(); |
941 | 942 |
|
@@ -965,7 +966,7 @@ class MyClass |
965 | 966 | EOF; |
966 | 967 |
|
967 | 968 | /** @noinspection PhpUnhandledExceptionInspection */ |
968 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 969 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
969 | 970 | $fp->parse($code, 'relativePathName'); |
970 | 971 | $cd = $fp->getClassDescriptions(); |
971 | 972 |
|
@@ -995,7 +996,7 @@ class MyClass |
995 | 996 | EOF; |
996 | 997 |
|
997 | 998 | /** @noinspection PhpUnhandledExceptionInspection */ |
998 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 999 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
999 | 1000 | $fp->parse($code, 'relativePathName'); |
1000 | 1001 | $cd = $fp->getClassDescriptions(); |
1001 | 1002 |
|
@@ -1027,7 +1028,7 @@ public function __construct(array $dtoList) |
1027 | 1028 | EOF; |
1028 | 1029 |
|
1029 | 1030 | /** @noinspection PhpUnhandledExceptionInspection */ |
1030 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1031 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1031 | 1032 | $fp->parse($code, 'relativePathName'); |
1032 | 1033 | $cd = $fp->getClassDescriptions(); |
1033 | 1034 |
|
@@ -1059,7 +1060,7 @@ public function __construct(array $dtoList) |
1059 | 1060 | EOF; |
1060 | 1061 |
|
1061 | 1062 | /** @noinspection PhpUnhandledExceptionInspection */ |
1062 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1063 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1063 | 1064 | $fp->parse($code, 'relativePathName'); |
1064 | 1065 | $cd = $fp->getClassDescriptions(); |
1065 | 1066 |
|
@@ -1091,7 +1092,7 @@ public function __construct(array $dtoList) |
1091 | 1092 | EOF; |
1092 | 1093 |
|
1093 | 1094 | /** @noinspection PhpUnhandledExceptionInspection */ |
1094 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1095 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1095 | 1096 | $fp->parse($code, 'relativePathName'); |
1096 | 1097 | $cd = $fp->getClassDescriptions(); |
1097 | 1098 |
|
@@ -1126,7 +1127,7 @@ public function __construct(string $var1, array $dtoList, $var2, array $voList) |
1126 | 1127 | EOF; |
1127 | 1128 |
|
1128 | 1129 | /** @noinspection PhpUnhandledExceptionInspection */ |
1129 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1130 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1130 | 1131 | $fp->parse($code, 'relativePathName'); |
1131 | 1132 | $cd = $fp->getClassDescriptions(); |
1132 | 1133 |
|
@@ -1159,7 +1160,7 @@ public function getList(): array |
1159 | 1160 | EOF; |
1160 | 1161 |
|
1161 | 1162 | /** @noinspection PhpUnhandledExceptionInspection */ |
1162 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1163 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1163 | 1164 | $fp->parse($code, 'relativePathName'); |
1164 | 1165 | $cd = $fp->getClassDescriptions(); |
1165 | 1166 |
|
@@ -1192,7 +1193,7 @@ public function getList(): array |
1192 | 1193 | EOF; |
1193 | 1194 |
|
1194 | 1195 | /** @noinspection PhpUnhandledExceptionInspection */ |
1195 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1196 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1196 | 1197 | $fp->parse($code, 'relativePathName'); |
1197 | 1198 | $cd = $fp->getClassDescriptions(); |
1198 | 1199 |
|
@@ -1225,7 +1226,7 @@ public function getList(): array |
1225 | 1226 | EOF; |
1226 | 1227 |
|
1227 | 1228 | /** @noinspection PhpUnhandledExceptionInspection */ |
1228 | | - $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.1')); |
| 1229 | + $fp = FileParserFactory::createFileParser(TargetPhpVersion::create('7.2')); |
1229 | 1230 | $fp->parse($code, 'relativePathName'); |
1230 | 1231 | $cd = $fp->getClassDescriptions(); |
1231 | 1232 |
|
|
0 commit comments