From 288b89ee19fb4c413c93b99ec22f1dfbb5a27241 Mon Sep 17 00:00:00 2001 From: Jordan Pickwell Date: Mon, 13 Jul 2020 15:09:32 -0500 Subject: [PATCH] Add model property types to magic where methods. --- src/Console/ModelsCommand.php | 6 +- .../__snapshots__/Test__test__1.php | 2 +- .../__snapshots__/Test__test__1.php | 4 +- .../__snapshots__/Test__test__1.php | 146 +++++++++--------- .../__snapshots__/Test__test__1.php | 146 +++++++++--------- .../__snapshots__/Test__test__1.php | 146 +++++++++--------- .../__snapshots__/Test__test__1.php | 146 +++++++++--------- .../Getter/__snapshots__/Test__test__1.php | 2 +- ..._parses_casted_properties_correctly__1.php | 14 +- .../Test__testNoinspectionNotPresent__1.php | 2 +- .../Test__testNoinspectionPresent__1.php | 2 +- .../__snapshots__/Test__test__1.php | 146 +++++++++--------- .../Relations/__snapshots__/Test__test__1.php | 2 +- .../__snapshots__/Test__testNoReset__1.php | 2 +- .../__snapshots__/Test__testReset__1.php | 2 +- .../__snapshots__/Test__testSmartReset__1.php | 2 +- .../__snapshots__/Test__test__1.php | 2 +- 17 files changed, 387 insertions(+), 385 deletions(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 95a7b2f49..7d684b613 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -435,9 +435,11 @@ protected function getPropertiesFromTable($model) if (!$column->getNotnull()) { $this->nullableColumns[$name] = true; } + + $propertyType = $this->getTypeInModel($model, $type); $this->setProperty( $name, - $this->getTypeInModel($model, $type), + $propertyType, true, true, $comment, @@ -449,7 +451,7 @@ protected function getPropertiesFromTable($model) $this->getClassNameInModel($model, \Illuminate\Database\Eloquent\Builder::class) . '|' . $this->getClassNameInModel($model, get_class($model)), - array('$value') + array(empty($propertyType) ? '$value' : "{$propertyType} \$value") ); } } diff --git a/tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php index c730904dc..89b758930 100644 --- a/tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php @@ -17,7 +17,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/CustomDate/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/CustomDate/__snapshots__/Test__test__1.php index 900849e01..8ea25daf0 100644 --- a/tests/Console/ModelsCommand/CustomDate/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/CustomDate/__snapshots__/Test__test__1.php @@ -12,8 +12,8 @@ * @method static \Illuminate\Database\Eloquent\Builder|CustomDate newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|CustomDate newQuery() * @method static \Illuminate\Database\Eloquent\Builder|CustomDate query() - * @method static \Illuminate\Database\Eloquent\Builder|CustomDate whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomDate whereUpdatedAt($value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomDate whereCreatedAt(\Carbon\CarbonImmutable $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomDate whereUpdatedAt(\Carbon\CarbonImmutable $value) * @mixin \Eloquent */ class CustomDate extends Model diff --git a/tests/Console/ModelsCommand/GenerateBasicPhpdoc/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/GenerateBasicPhpdoc/__snapshots__/Test__test__1.php index 7ea608008..6459cde3d 100644 --- a/tests/Console/ModelsCommand/GenerateBasicPhpdoc/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/GenerateBasicPhpdoc/__snapshots__/Test__test__1.php @@ -83,79 +83,79 @@ * @method static \Illuminate\Database\Eloquent\Builder|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post query() - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable($value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereId(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable(integer $value) * @mixin \Eloquent */ class Post extends Model diff --git a/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php index ddc085254..120739eb9 100644 --- a/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php @@ -83,79 +83,79 @@ * @method static \Illuminate\Database\Eloquent\Builder|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post query() - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable($value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereId(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable(integer $value) * @mixin \Eloquent */ class Post extends Model diff --git a/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php index 5b225f826..a1f6a4f86 100644 --- a/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php @@ -83,79 +83,79 @@ * @method static \Illuminate\Database\Eloquent\Builder|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post query() - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable($value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereId(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable(integer $value) * @mixin \Eloquent */ final class Post extends Model diff --git a/tests/Console/ModelsCommand/GeneratePhpdocWithFqn/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/GeneratePhpdocWithFqn/__snapshots__/Test__test__1.php index baf3d5e2a..a3156aadc 100644 --- a/tests/Console/ModelsCommand/GeneratePhpdocWithFqn/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/GeneratePhpdocWithFqn/__snapshots__/Test__test__1.php @@ -97,79 +97,79 @@ * @method static EloquentBuilder|Post null($unusedParam) * @method static QueryBuilder|Post onlyTrashed() * @method static EloquentBuilder|Post query() - * @method static EloquentBuilder|Post whereBigIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereBigIntegerNullable($value) - * @method static EloquentBuilder|Post whereBinaryNotNullable($value) - * @method static EloquentBuilder|Post whereBinaryNullable($value) - * @method static EloquentBuilder|Post whereBooleanNotNullable($value) - * @method static EloquentBuilder|Post whereBooleanNullable($value) - * @method static EloquentBuilder|Post whereCharNotNullable($value) - * @method static EloquentBuilder|Post whereCharNullable($value) - * @method static EloquentBuilder|Post whereCreatedAt($value) - * @method static EloquentBuilder|Post whereDateNotNullable($value) - * @method static EloquentBuilder|Post whereDateNullable($value) - * @method static EloquentBuilder|Post whereDatetimeNotNullable($value) - * @method static EloquentBuilder|Post whereDatetimeNullable($value) - * @method static EloquentBuilder|Post whereDatetimetzNotNullable($value) - * @method static EloquentBuilder|Post whereDatetimetzNullable($value) - * @method static EloquentBuilder|Post whereDecimalNotNullable($value) - * @method static EloquentBuilder|Post whereDecimalNullable($value) - * @method static EloquentBuilder|Post whereDoubleNotNullable($value) - * @method static EloquentBuilder|Post whereDoubleNullable($value) - * @method static EloquentBuilder|Post whereEnumNotNullable($value) - * @method static EloquentBuilder|Post whereEnumNullable($value) - * @method static EloquentBuilder|Post whereFloatNotNullable($value) - * @method static EloquentBuilder|Post whereFloatNullable($value) - * @method static EloquentBuilder|Post whereId($value) - * @method static EloquentBuilder|Post whereIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereIntegerNullable($value) - * @method static EloquentBuilder|Post whereIpaddressNotNullable($value) - * @method static EloquentBuilder|Post whereIpaddressNullable($value) - * @method static EloquentBuilder|Post whereJsonNotNullable($value) - * @method static EloquentBuilder|Post whereJsonNullable($value) - * @method static EloquentBuilder|Post whereJsonbNotNullable($value) - * @method static EloquentBuilder|Post whereJsonbNullable($value) - * @method static EloquentBuilder|Post whereLongTextNotNullable($value) - * @method static EloquentBuilder|Post whereLongTextNullable($value) - * @method static EloquentBuilder|Post whereMacaddressNotNullable($value) - * @method static EloquentBuilder|Post whereMacaddressNullable($value) - * @method static EloquentBuilder|Post whereMediumIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereMediumIntegerNullable($value) - * @method static EloquentBuilder|Post whereMediumTextNotNullable($value) - * @method static EloquentBuilder|Post whereMediumTextNullable($value) - * @method static EloquentBuilder|Post whereSmallIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereSmallIntegerNullable($value) - * @method static EloquentBuilder|Post whereStringNotNullable($value) - * @method static EloquentBuilder|Post whereStringNullable($value) - * @method static EloquentBuilder|Post whereTextNotNullable($value) - * @method static EloquentBuilder|Post whereTextNullable($value) - * @method static EloquentBuilder|Post whereTimeNotNullable($value) - * @method static EloquentBuilder|Post whereTimeNullable($value) - * @method static EloquentBuilder|Post whereTimestampNotNullable($value) - * @method static EloquentBuilder|Post whereTimestampNullable($value) - * @method static EloquentBuilder|Post whereTimestamptzNotNullable($value) - * @method static EloquentBuilder|Post whereTimestamptzNullable($value) - * @method static EloquentBuilder|Post whereTimetzNotNullable($value) - * @method static EloquentBuilder|Post whereTimetzNullable($value) - * @method static EloquentBuilder|Post whereTinyIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereTinyIntegerNullable($value) - * @method static EloquentBuilder|Post whereUnsignedBigIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedBigIntegerNullable($value) - * @method static EloquentBuilder|Post whereUnsignedDecimalNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedDecimalNullable($value) - * @method static EloquentBuilder|Post whereUnsignedIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedIntegerNullable($value) - * @method static EloquentBuilder|Post whereUnsignedMediumIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedMediumIntegerNullable($value) - * @method static EloquentBuilder|Post whereUnsignedSmallIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedSmallIntegerNullable($value) - * @method static EloquentBuilder|Post whereUnsignedTinyIntegerNotNullable($value) - * @method static EloquentBuilder|Post whereUnsignedTinyIntegerNullable($value) - * @method static EloquentBuilder|Post whereUpdatedAt($value) - * @method static EloquentBuilder|Post whereUuidNotNullable($value) - * @method static EloquentBuilder|Post whereUuidNullable($value) - * @method static EloquentBuilder|Post whereYearNotNullable($value) - * @method static EloquentBuilder|Post whereYearNullable($value) + * @method static EloquentBuilder|Post whereBigIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereBigIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereBinaryNotNullable(mixed $value) + * @method static EloquentBuilder|Post whereBinaryNullable(mixed $value) + * @method static EloquentBuilder|Post whereBooleanNotNullable(integer $value) + * @method static EloquentBuilder|Post whereBooleanNullable(integer $value) + * @method static EloquentBuilder|Post whereCharNotNullable(string $value) + * @method static EloquentBuilder|Post whereCharNullable(string $value) + * @method static EloquentBuilder|Post whereCreatedAt(Carbon $value) + * @method static EloquentBuilder|Post whereDateNotNullable(string $value) + * @method static EloquentBuilder|Post whereDateNullable(string $value) + * @method static EloquentBuilder|Post whereDatetimeNotNullable(string $value) + * @method static EloquentBuilder|Post whereDatetimeNullable(string $value) + * @method static EloquentBuilder|Post whereDatetimetzNotNullable(string $value) + * @method static EloquentBuilder|Post whereDatetimetzNullable(string $value) + * @method static EloquentBuilder|Post whereDecimalNotNullable(string $value) + * @method static EloquentBuilder|Post whereDecimalNullable(string $value) + * @method static EloquentBuilder|Post whereDoubleNotNullable(float $value) + * @method static EloquentBuilder|Post whereDoubleNullable(float $value) + * @method static EloquentBuilder|Post whereEnumNotNullable(string $value) + * @method static EloquentBuilder|Post whereEnumNullable(string $value) + * @method static EloquentBuilder|Post whereFloatNotNullable(float $value) + * @method static EloquentBuilder|Post whereFloatNullable(float $value) + * @method static EloquentBuilder|Post whereId(integer $value) + * @method static EloquentBuilder|Post whereIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereIpaddressNotNullable(string $value) + * @method static EloquentBuilder|Post whereIpaddressNullable(string $value) + * @method static EloquentBuilder|Post whereJsonNotNullable(string $value) + * @method static EloquentBuilder|Post whereJsonNullable(string $value) + * @method static EloquentBuilder|Post whereJsonbNotNullable(string $value) + * @method static EloquentBuilder|Post whereJsonbNullable(string $value) + * @method static EloquentBuilder|Post whereLongTextNotNullable(string $value) + * @method static EloquentBuilder|Post whereLongTextNullable(string $value) + * @method static EloquentBuilder|Post whereMacaddressNotNullable(string $value) + * @method static EloquentBuilder|Post whereMacaddressNullable(string $value) + * @method static EloquentBuilder|Post whereMediumIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereMediumIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereMediumTextNotNullable(string $value) + * @method static EloquentBuilder|Post whereMediumTextNullable(string $value) + * @method static EloquentBuilder|Post whereSmallIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereSmallIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereStringNotNullable(string $value) + * @method static EloquentBuilder|Post whereStringNullable(string $value) + * @method static EloquentBuilder|Post whereTextNotNullable(string $value) + * @method static EloquentBuilder|Post whereTextNullable(string $value) + * @method static EloquentBuilder|Post whereTimeNotNullable(string $value) + * @method static EloquentBuilder|Post whereTimeNullable(string $value) + * @method static EloquentBuilder|Post whereTimestampNotNullable(string $value) + * @method static EloquentBuilder|Post whereTimestampNullable(string $value) + * @method static EloquentBuilder|Post whereTimestamptzNotNullable(string $value) + * @method static EloquentBuilder|Post whereTimestamptzNullable(string $value) + * @method static EloquentBuilder|Post whereTimetzNotNullable(string $value) + * @method static EloquentBuilder|Post whereTimetzNullable(string $value) + * @method static EloquentBuilder|Post whereTinyIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereTinyIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedBigIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedBigIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedDecimalNotNullable(string $value) + * @method static EloquentBuilder|Post whereUnsignedDecimalNullable(string $value) + * @method static EloquentBuilder|Post whereUnsignedIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedMediumIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedMediumIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedSmallIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedSmallIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedTinyIntegerNotNullable(integer $value) + * @method static EloquentBuilder|Post whereUnsignedTinyIntegerNullable(integer $value) + * @method static EloquentBuilder|Post whereUpdatedAt(Carbon $value) + * @method static EloquentBuilder|Post whereUuidNotNullable(string $value) + * @method static EloquentBuilder|Post whereUuidNullable(string $value) + * @method static EloquentBuilder|Post whereYearNotNullable(integer $value) + * @method static EloquentBuilder|Post whereYearNullable(integer $value) * @method static QueryBuilder|Post withTrashed() * @method static QueryBuilder|Post withoutTrashed() * @mixin Eloquent diff --git a/tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php index 49fd7d479..4f33231df 100644 --- a/tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php @@ -32,7 +32,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/LaravelCustomCasts/__snapshots__/Test__test_it_parses_casted_properties_correctly__1.php b/tests/Console/ModelsCommand/LaravelCustomCasts/__snapshots__/Test__test_it_parses_casted_properties_correctly__1.php index ec49d7b57..628c1cd3a 100644 --- a/tests/Console/ModelsCommand/LaravelCustomCasts/__snapshots__/Test__test_it_parses_casted_properties_correctly__1.php +++ b/tests/Console/ModelsCommand/LaravelCustomCasts/__snapshots__/Test__test_it_parses_casted_properties_correctly__1.php @@ -24,13 +24,13 @@ * @method static \Illuminate\Database\Eloquent\Builder|CustomCast newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|CustomCast newQuery() * @method static \Illuminate\Database\Eloquent\Builder|CustomCast query() - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnDocblock($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnDocblockFqn($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnNullablePrimitive($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnPrimitive($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnPrimitiveDocblock($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnType($value) - * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithoutReturn($value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnDocblock(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnDocblockFqn(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnNullablePrimitive(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnPrimitive(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnPrimitiveDocblock(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithReturnType(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|CustomCast whereCastedPropertyWithoutReturn(string $value) * @mixin \Eloquent */ class CustomCast extends Model diff --git a/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionNotPresent__1.php b/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionNotPresent__1.php index 2a86e11e2..f0c3e271c 100644 --- a/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionNotPresent__1.php +++ b/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionNotPresent__1.php @@ -11,7 +11,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionPresent__1.php b/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionPresent__1.php index c86c529dc..cac2ac63c 100644 --- a/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionPresent__1.php +++ b/tests/Console/ModelsCommand/PHPStormNoInspection/__snapshots__/Test__testNoinspectionPresent__1.php @@ -11,7 +11,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent * @noinspection PhpFullyQualifiedNameUsageInspection * @noinspection PhpUnnecessaryFullyQualifiedNameInspection diff --git a/tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php index 0c8fad997..fab7a0cf9 100644 --- a/tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php @@ -85,79 +85,79 @@ * @method static \Illuminate\Database\Eloquent\Builder|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Post query() - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable($value) - * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable($value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNotNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBinaryNullable(mixed $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereBooleanNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCharNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereCreatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDateNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDatetimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereDoubleNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereEnumNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNotNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereFloatNullable(float $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereId(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereIpaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereJsonbNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereLongTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMacaddressNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereMediumTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereStringNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTextNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimeNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestampNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimestamptzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTimetzNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedBigIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedDecimalNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedMediumIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedSmallIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUnsignedTinyIntegerNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUpdatedAt(\Illuminate\Support\Carbon $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNotNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereUuidNullable(string $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNotNullable(integer $value) + * @method static \Illuminate\Database\Eloquent\Builder|Post whereYearNullable(integer $value) * @mixin \Eloquent */ class Post extends Model diff --git a/tests/Console/ModelsCommand/Relations/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/Relations/__snapshots__/Test__test__1.php index 4fbdba20e..6703a899b 100644 --- a/tests/Console/ModelsCommand/Relations/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/Relations/__snapshots__/Test__test__1.php @@ -39,7 +39,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php index c6c1e7f7e..3e725a925 100644 --- a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php +++ b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php @@ -12,7 +12,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php index 04b71d4f2..9f8a146ad 100644 --- a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php +++ b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php @@ -11,7 +11,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php index 40737ffb7..cd4b13597 100644 --- a/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php +++ b/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php @@ -11,7 +11,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @mixin \Eloquent */ class Simple extends Model diff --git a/tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php index cc93e3076..80e10d979 100644 --- a/tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php @@ -13,7 +13,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Query\Builder|Simple onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() - * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) + * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId(integer $value) * @method static \Illuminate\Database\Query\Builder|Simple withTrashed() * @method static \Illuminate\Database\Query\Builder|Simple withoutTrashed() * @mixin \Eloquent