File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 5454 - typo3-version : " ^11.5"
5555 php-version : " 8.2"
5656 composer-flags : " --prefer-lowest"
57+ - typo3-version : " ^12.0"
58+ php-version : " 8.1"
59+ composer-flags : " "
60+ - typo3-version : " ^12.0"
61+ php-version : " 8.1"
62+ composer-flags : " --prefer-lowest"
63+ - typo3-version : " ^12.0"
64+ php-version : " 8.2"
65+ composer-flags : " "
66+ - typo3-version : " ^12.0"
67+ php-version : " 8.2"
68+ composer-flags : " --prefer-lowest"
5769
5870 steps :
5971 - name : " Checkout"
Original file line number Diff line number Diff line change 99 "php" : " ^7.2 || ^8.0" ,
1010 "phpstan/phpstan" : " ^1.8.9" ,
1111 "nikic/php-parser" : " ^4.15.1" ,
12- "typo3/cms-core" : " ^10.4 || ^11.5" ,
13- "typo3/cms-extbase" : " ^10.4 || ^11.5"
12+ "typo3/cms-core" : " ^10.4 || ^11.5 || ^12.0 " ,
13+ "typo3/cms-extbase" : " ^10.4 || ^11.5 || ^12.0 "
1414 },
1515 "require-dev" : {
1616 "consistence-community/coding-standard" : " ^3.10.1" ,
Original file line number Diff line number Diff line change 1111use PHPStan \Type \ObjectType ;
1212use PHPStan \Type \Type ;
1313
14+ /**
15+ * @deprecated This class will be dropped once support for TYPO3 <= 10 is dropped.
16+ */
1417class ObjectManagerDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
1518{
1619
1720 public function getClass (): string
1821 {
19- return \TYPO3 \CMS \Extbase \Object \ObjectManagerInterface::class;
22+ return interface_exists (\TYPO3 \CMS \Extbase \Object \ObjectManagerInterface::class)
23+ ? \TYPO3 \CMS \Extbase \Object \ObjectManagerInterface::class : '' ;
2024 }
2125
2226 public function isMethodSupported (
2327 MethodReflection $ methodReflection
2428 ): bool
2529 {
26- return $ methodReflection ->getName () === 'get ' ;
30+ return interface_exists (\TYPO3 \CMS \Extbase \Object \ObjectManagerInterface::class)
31+ && $ methodReflection ->getName () === 'get ' ;
2732 }
2833
2934 public function getTypeFromMethodCall (
You can’t perform that action at this time.
0 commit comments