Skip to content

Commit 416faae

Browse files
authored
fix: phpstan error for string('column', 'MAX') (#223)
fix/phpstan-error-blueprint
1 parent 1c2a1ed commit 416faae

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# v8.1.3 (2024-06-24)
2+
3+
Fixed
4+
- phpstan error for string('column', 'MAX') (#223)
5+
6+
# v8.1.2 (2024-06-10)
7+
8+
Fixed
9+
- updateOrInsert signature change in 11.10 (#216)
10+
111
# v8.1.1 (2024-06-03)
212

313
Fixed

phpstan.neon

+3
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ parameters:
4545
- message: "#^Cannot access offset 'requestTag' on mixed\\.$#"
4646
count: 1
4747
path: src/Connection.php
48+
- message: "#^Parameter \\#2 \\$length of method Illuminate\\\\Database\\\\Schema\\\\Blueprint\\:\\:string\\(\\) expects int\\|null, int\\|string\\|null given\\.$#"
49+
count: 1
50+
path: src/Schema/Blueprint.php

src/Schema/Blueprint.php

+9
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ public function tinyIncrements($column)
111111
return $this->increments($column);
112112
}
113113

114+
/**
115+
* @inheritDoc
116+
* @param int|'max'|null $length add support for 'max'
117+
*/
118+
public function string($column, $length = null)
119+
{
120+
return parent::string($column, $length);
121+
}
122+
114123
/**
115124
* @inheritDoc
116125
* @return UuidColumnDefinition

0 commit comments

Comments
 (0)