Skip to content

Commit 1c3cf10

Browse files
committed
Don't use ?array type hint in ext attributes
1 parent 7605bef commit 1c3cf10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getFileContents(string $className): string
9393
// converted to just an array
9494
$paramType = $type;
9595
if (strpos($type, '[]') !== false) {
96-
$paramType = '?array';
96+
$paramType = null;
9797
}
9898

9999
$generator->addMethodFromGenerator(

src/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getFileContents(string $interfaceName): string
109109
// converted to just an array
110110
$paramType = $type;
111111
if (strpos($type, '[]') !== false) {
112-
$paramType = '?array';
112+
$paramType = null;
113113
}
114114

115115
$generator->addMethodFromGenerator(

0 commit comments

Comments
 (0)