Skip to content

Commit 760ffd1

Browse files
tei0110shaedrich
andauthored
Fix validate integer php doc type annotation (#57435)
* Fix validateInteger PHPDoc type annotation Changed from `array{0: 'strict'}` to `array<int, string>` to fix PHPStan errors with empty array default value. * add space * add space * Update src/Illuminate/Validation/Concerns/ValidatesAttributes.php Co-authored-by: Sebastian Hädrich <11225821+shaedrich@users.noreply.github.com> --------- Co-authored-by: Sebastian Hädrich <11225821+shaedrich@users.noreply.github.com>
1 parent 29684f5 commit 760ffd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Validation/Concerns/ValidatesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public function validateInArrayKeys($attribute, $value, $parameters)
15531553
*
15541554
* @param string $attribute
15551555
* @param mixed $value
1556-
* @param array{0: 'strict'} $parameters
1556+
* @param array{0?: 'strict'} $parameters
15571557
* @return bool
15581558
*/
15591559
public function validateInteger($attribute, $value, array $parameters = [])

0 commit comments

Comments
 (0)