Skip to content

Commit

Permalink
Dusting
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Dec 1, 2023
1 parent 16f7f00 commit 847b69f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Formatters/NoDatesPropertyOnModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class NoDatesPropertyOnModels extends BaseFormatter
{
use IdentifiesExtends;

protected bool $model = false;

public const DESCRIPTION = 'Use `$casts` instead of `$dates` on Eloquent models.';

protected bool $model = false;

public function format(Parser $parser, Lexer $lexer): string
{
$traverser = new NodeTraverser;
Expand Down
4 changes: 2 additions & 2 deletions src/Linters/NoDatesPropertyOnModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class NoDatesPropertyOnModels extends BaseLinter
{
use IdentifiesExtends;

protected bool $model = false;

public const DESCRIPTION = 'The `$dates` property was deprecated in Laravel 8. Use `$casts` instead.';

protected bool $model = false;

protected function visitor(): Closure
{
return function (Node $node) {
Expand Down

0 comments on commit 847b69f

Please sign in to comment.