We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bd362 commit a8151d9Copy full SHA for a8151d9
src/Type/Doctrine/Descriptors/SimpleArrayType.php
@@ -2,7 +2,9 @@
2
3
namespace PHPStan\Type\Doctrine\Descriptors;
4
5
+use PHPStan\Type\Accessory\AccessoryArrayListType;
6
use PHPStan\Type\ArrayType;
7
+use PHPStan\Type\IntegerType;
8
use PHPStan\Type\MixedType;
9
use PHPStan\Type\StringType;
10
use PHPStan\Type\Type;
@@ -17,12 +19,12 @@ public function getType(): string
17
19
18
20
public function getWritableToPropertyType(): Type
21
{
- return new ArrayType(new MixedType(), new MixedType());
22
+ return AccessoryArrayListType::intersectWith(new ArrayType(new IntegerType(), new StringType()));
23
}
24
25
public function getWritableToDatabaseType(): Type
26
27
+ return new ArrayType(new MixedType(), new StringType());
28
29
30
public function getDatabaseInternalType(): Type
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments