Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
bec056a
Bump version to 7.3
fabpot Nov 20, 2024
f194b1b
Merge branch '7.2' into 7.3
nicolas-grekas Nov 20, 2024
40f55d7
Merge branch '7.2' into 7.3
xabbuh Nov 20, 2024
0f5e3f4
Merge branch '7.2' into 7.3
xabbuh Nov 20, 2024
9fac435
chore: fix some typos
wanxiangchwng Nov 23, 2024
5a90414
minor #58972 chore: fix some typos (wanxiangchwng)
fabpot Nov 23, 2024
4786a74
Merge branch '7.2' into 7.3
nicolas-grekas Nov 25, 2024
e5fe662
Merge branch '7.2' into 7.3
nicolas-grekas Nov 25, 2024
d867b12
Merge branch '7.2' into 7.3
xabbuh Nov 26, 2024
3feb53b
Merge branch '7.2' into 7.3
nicolas-grekas Nov 27, 2024
6f8f122
Merge branch '7.2' into 7.3
nicolas-grekas Nov 27, 2024
5ce5528
Merge branch '7.2' into 7.3
nicolas-grekas Nov 27, 2024
136bde3
Merge branch '7.2' into 7.3
nicolas-grekas Nov 27, 2024
9d85c55
[VarDumper] Add caster for AddressInfo objects
nicolas-grekas Nov 26, 2024
baf98b9
feature #58989 [VarDumper] Add caster for `AddressInfo` objects (nico…
nicolas-grekas Nov 28, 2024
3232f55
[VarDumper] Add caster for Socket instances
nicolas-grekas Nov 28, 2024
4ed9d03
Merge branch '7.2' into 7.3
nicolas-grekas Nov 29, 2024
4feeb98
Merge branch '7.2' into 7.3
xabbuh Dec 2, 2024
73d4904
Merge branch '7.2' into 7.3
xabbuh Dec 2, 2024
aed69bb
[JsonEncoder] Introduce component
mtarld Mar 20, 2023
9c59199
Add webhooks signature verification on Sweego bridges
welcoMattic Oct 24, 2024
2d1838a
feature #59026 [VarDumper] Add caster for Socket instances (nicolas-g…
fabpot Dec 6, 2024
3a804f5
feature #58651 [Mailer][Notifier] Add webhooks signature verification…
fabpot Dec 6, 2024
5fa3e92
[AssetMapper] add support for assets pre-compression
dunglas Nov 27, 2024
12e4e53
feature #59020 [AssetMapper] add support for assets pre-compression (…
fabpot Dec 6, 2024
99737f9
[AssetMapper] Fix missing return type
alexandre-daubois Dec 6, 2024
36cb3bf
Move properties above `__construct()` method
OskarStark Dec 6, 2024
a61bd89
Rename TranslationUpdateCommand to TranslationExtract command to matc…
welcoMattic Dec 6, 2024
b6d6adf
minor #59105 [FrameworkBundle] Rename TranslationUpdateCommand to Tra…
fabpot Dec 7, 2024
0d28cf1
minor #59112 [Scheduler] Move properties above `__construct()` method…
fabpot Dec 7, 2024
41dacf7
Add @return non-empty-string annotations to AbstractUid and relevant …
niravpateljoin Dec 3, 2024
01c78b3
support non-empty-string/non-empty-list when patching return types
xabbuh Dec 7, 2024
b6c7abc
Merge branch '7.2' into 7.3
xabbuh Dec 7, 2024
c98b02a
Merge branch '7.2' into 7.3
derrabus Dec 7, 2024
b7ed0a4
feature #59114 [ErrorHandler] support non-empty-string/non-empty-list…
derrabus Dec 7, 2024
12ff1bf
feature #59075 [Uid] Add ``@return` non-empty-string` annotations to …
derrabus Dec 7, 2024
5c7dac2
minor #59108 [AssetMapper] Fix missing return type (alexandre-daubois)
derrabus Dec 7, 2024
096bfaa
[Security][SecurityBundle] User authorization checker
Dec 13, 2021
4612ff2
feature #48142 [Security][SecurityBundle] User authorization checker …
derrabus Dec 7, 2024
b6597b6
[AssetMapper] minor fixes for pre-compression
dunglas Dec 7, 2024
a185129
Remove ServiceSubscriberInterface implementation
derrabus Dec 7, 2024
0a44b87
bug #59130 [AssetMapper] minor fixes for pre-compression (dunglas)
fabpot Dec 9, 2024
8b271eb
Merge branch '7.2' into 7.3
xabbuh Dec 9, 2024
8c841e3
minor #59133 Remove ServiceSubscriberInterface implementation from Se…
fabpot Dec 9, 2024
6d3c219
[Workflow] Update union to intersection for mock type
alexandre-daubois Dec 10, 2024
eac7d49
[Console] Add support of millisecondes for `formatTime`
SebLevDev Nov 20, 2024
d1a3375
feature #58946 [Console] Add support of millisecondes for `formatTime…
fabpot Dec 10, 2024
7e4178a
[HttpFoundation] Support iterable of string in `StreamedResponse`
mtarld Dec 10, 2024
049bc63
[Console] Fix time display in tests
alexandre-daubois Dec 10, 2024
57c8040
minor #59158 [Console] Fix time display in tests (alexandre-daubois)
fabpot Dec 10, 2024
c198130
feature #51718 [Serializer] [JsonEncoder] Introducing the component (…
fabpot Dec 10, 2024
cfe09c2
feature #59154 [HttpFoundation] Support iterable of string in `Stream…
fabpot Dec 10, 2024
ac1f54c
[HttpKernel] [MapQueryString] added key argument to MapQueryString at…
feymo Dec 10, 2024
bb8fc43
feature #59157 [HttpKernel] [MapQueryString] added key argument to Ma…
fabpot Dec 10, 2024
edf5830
[JsonEncoder] Fix timezone on `DateTimeNormalizerTest` fixture
alexandre-daubois Dec 10, 2024
2d54786
minor #59162 [JsonEncoder] Fix timezone on `DateTimeNormalizerTest` f…
chalasr Dec 10, 2024
e213884
[FrameworkBundle] [JsonEncoder] Wire services
mtarld Oct 9, 2024
a6f4524
[JsonEncoder] remove some unnecessary recomputations in LazyInstantiator
jdreesen Dec 10, 2024
3ffb4fc
minor #59164 [JsonEncoder] remove some unnecessary recomputations in …
fabpot Dec 11, 2024
cd84496
minor #59151 [Workflow] Fix union to intersection for mock type (alex…
fabpot Dec 11, 2024
30d8c31
feature #58515 [FrameworkBundle][JsonEncoder] Wire services (mtarld)
chalasr Dec 11, 2024
7082e2e
[FrameworkBundle] Fix `JsonEncoder` config on low-deps
alexandre-daubois Dec 11, 2024
981c3a2
minor #59174 [FrameworkBundle] Add `symfony/json-encoder` to dev requ…
chalasr Dec 11, 2024
4ababf2
Merge branch '7.2' into 7.3
xabbuh Dec 11, 2024
0d74921
[JsonEncoder] [FrameworkBundle] Fix service definition
mtarld Dec 11, 2024
ffccbc3
[JsonEncoder] Add native lazyghost support
mtarld Dec 11, 2024
7369408
[FrameworkBundle] Fix `symfony/translation` conflict
alexandre-daubois Dec 11, 2024
92ef8bc
chore: PHP CS Fixer fixes
keradus Dec 11, 2024
64e6b78
minor #59173 chore: PHP CS Fixer fixes (keradus)
fabpot Dec 12, 2024
01956e2
Merge branch '7.2' into 7.3
xabbuh Dec 12, 2024
7162f0f
fix NativeTransportFactoryTest
xabbuh Dec 12, 2024
31c4198
minor #59195 [Mailer] fix NativeTransportFactoryTest (xabbuh)
xabbuh Dec 12, 2024
ea31908
minor #59176 [FrameworkBundle] Fix `symfony/translation` conflict (al…
xabbuh Dec 12, 2024
aa23093
minor #59179 [FrameworkBundle] [JsonEncoder] Fix service definition …
xabbuh Dec 12, 2024
c2c0e8b
do not allow symfony/json-encoder 7.4 yet
xabbuh Dec 11, 2024
0e83e1e
[JsonEncoder] Use reuse decodeString in NativeDecoder
alamirault Dec 12, 2024
d57efd1
minor #59203 [JsonEncoder] Reuse decodeString in NativeDecoder (alami…
chalasr Dec 13, 2024
a533750
Generate url-safe signatures
valtzu Nov 27, 2024
49c622f
chore: PHP CS Fixer fixes
keradus Dec 13, 2024
812c533
minor #59210 chore: PHP CS Fixer fixes (keradus)
fabpot Dec 14, 2024
95c43e3
minor #59180 [FrameworkBundle] do not allow symfony/json-encoder 7.4 …
fabpot Dec 14, 2024
278d62c
rename userIsGranted() to isGrantedForUser()
xabbuh Dec 15, 2024
3d807c1
[Routing] Validate "namespace" (when using `Psr4DirectoryLoader`)
Kocal Dec 11, 2024
30b8038
minor #59189 [Routing] Validate "namespace" (when using `Psr4Director…
fabpot Dec 16, 2024
dd882db
minor #59214 [Security][SecurityBundle] rename userIsGranted() to isG…
fabpot Dec 16, 2024
761bb04
[PropertyInfo] Add non-*-int missing types for PhpStanExtractor
wuchen90 Dec 12, 2024
27dfb8c
[Notifier] unsupported options exception
raphael-geffroy Dec 17, 2024
94a156f
minor #59234 [Notifier] unsupported options exception (raphael-geffroy)
fabpot Dec 18, 2024
ccf91a1
feature #59192 [PropertyInfo] Add non-*-int missing types for PhpStan…
fabpot Dec 18, 2024
2bfcd89
[AssetMapper] Adding 'Everything up to date' message
ThomasLandauer Dec 11, 2024
892ab6f
minor #59178 [AssetMapper] Adding 'Everything up to date' message (Th…
fabpot Dec 18, 2024
7d6b9ad
feature #59177 [JsonEncoder] Add native lazyghost support (mtarld)
fabpot Dec 18, 2024
dd061aa
feature #59022 [HttpFoundation] Generate url-safe hashes for signed u…
fabpot Dec 18, 2024
23d7763
fix an undefined key error when trying to fetch a missing section
Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[PropertyInfo] Add non-*-int missing types for PhpStanExtractor
  • Loading branch information
wuchen90 committed Dec 17, 2024
commit 761bb0464d39e301dbd8731e48b6563841a22dfa
5 changes: 5 additions & 0 deletions src/Symfony/Component/PropertyInfo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

7.3
---

* Add support for `non-positive-int`, `non-negative-int` and `non-zero-int` PHPStan types to `PhpStanExtractor`

7.1
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ public static function provideLegacyPseudoTypes(): array
['literalString', [new LegacyType(LegacyType::BUILTIN_TYPE_STRING, false, null)]],
['positiveInt', [new LegacyType(LegacyType::BUILTIN_TYPE_INT, false, null)]],
['negativeInt', [new LegacyType(LegacyType::BUILTIN_TYPE_INT, false, null)]],
['nonPositiveInt', [new LegacyType(LegacyType::BUILTIN_TYPE_INT, false, null)]],
['nonNegativeInt', [new LegacyType(LegacyType::BUILTIN_TYPE_INT, false, null)]],
['nonZeroInt', [new LegacyType(LegacyType::BUILTIN_TYPE_INT, false, null)]],
['nonEmptyArray', [new LegacyType(LegacyType::BUILTIN_TYPE_ARRAY, false, null, true)]],
['nonEmptyList', [new LegacyType(LegacyType::BUILTIN_TYPE_ARRAY, false, null, true, new LegacyType(LegacyType::BUILTIN_TYPE_INT))]],
['scalar', [new LegacyType(LegacyType::BUILTIN_TYPE_INT), new LegacyType(LegacyType::BUILTIN_TYPE_FLOAT), new LegacyType(LegacyType::BUILTIN_TYPE_STRING), new LegacyType(LegacyType::BUILTIN_TYPE_BOOL)]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ class PhpStanPseudoTypesDummy extends PseudoTypesDummy
/** @var negative-int */
public $negativeInt;

/** @var non-positive-int */
public $nonPositiveInt;

/** @var non-negative-int */
public $nonNegativeInt;

/** @var non-zero-int */
public $nonZeroInt;

/** @var non-empty-array */
public $nonEmptyArray;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ private function extractTypes(TypeNode $node, NameScope $nameScope): array
return match ($node->name) {
'integer',
'positive-int',
'negative-int' => [new Type(Type::BUILTIN_TYPE_INT)],
'negative-int',
'non-positive-int',
'non-negative-int',
'non-zero-int' => [new Type(Type::BUILTIN_TYPE_INT)],
'double' => [new Type(Type::BUILTIN_TYPE_FLOAT)],
'list',
'non-empty-list' => [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT))],
Expand Down