Skip to content

Commit 75c6760

Browse files
committed
fix(phpstan): php's type system can't express this case
1 parent 2c65c75 commit 75c6760

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Schema/Concerns/ZeroDowntimeMigration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ trait ZeroDowntimeMigration
1111
*/
1212
public function timeoutDown(): float
1313
{
14+
// @phpstan-ignore function.impossibleType
1415
if (property_exists($this, 'timeoutDown')) {
1516
return (float) $this->timeoutDown;
1617
}
18+
// @phpstan-ignore function.impossibleType
1719
if (property_exists($this, 'timeout')) {
1820
return (float) $this->timeout;
1921
}
@@ -26,9 +28,11 @@ public function timeoutDown(): float
2628
*/
2729
public function timeoutUp(): float
2830
{
31+
// @phpstan-ignore function.impossibleType
2932
if (property_exists($this, 'timeoutUp')) {
3033
return (float) $this->timeoutUp;
3134
}
35+
// @phpstan-ignore function.impossibleType
3236
if (property_exists($this, 'timeout')) {
3337
return (float) $this->timeout;
3438
}

0 commit comments

Comments
 (0)