Skip to content

Commit

Permalink
Fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgaal committed Aug 15, 2022
1 parent cff2aad commit bef7645
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Properties/ModelPropertyExtension.php
Expand Up @@ -289,7 +289,7 @@ private function castPropertiesType(Model $modelInstance): void
}

if ($this->tables[$modelInstance->getTable()]->columns[$name]->nullable) {
$realType = $realType instanceof Type ? TypeCombinator::addNull($realType) : $realType . '|null';
$realType = $realType instanceof Type ? TypeCombinator::addNull($realType) : $realType.'|null';
}

$this->tables[$modelInstance->getTable()]->columns[$name]->readableType = $realType;
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/app/Casts/Favorites.php
Expand Up @@ -20,7 +20,7 @@ public function get($model, $key, $value, $attributes)
/**
* Prepare the given value for storage.
*
* @param Favorites $value
* @param Favorites $value
*/
public function set($model, $key, $value, $attributes)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Application/app/User.php
Expand Up @@ -2,6 +2,7 @@

namespace App;

use App\Casts\Favorites;
use function get_class;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\AsArrayObject;
Expand All @@ -18,7 +19,6 @@
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
use Tests\Application\HasManySyncable;
use App\Casts\Favorites;

/**
* @property string $propertyDefinedOnlyInAnnotation
Expand All @@ -39,7 +39,7 @@ class User extends Authenticatable
* @var array
*/
protected $fillable = [
'name', 'email', 'password'
'name', 'email', 'password',
];

/** @var array<string, string> */
Expand Down
1 change: 0 additions & 1 deletion tests/Features/Properties/ModelPropertyExtension.php
Expand Up @@ -17,7 +17,6 @@
use Carbon\Carbon as BaseCarbon;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use function PHPStan\dumpType;
use function PHPStan\Testing\assertType;

class ModelPropertyExtension
Expand Down

0 comments on commit bef7645

Please sign in to comment.