Skip to content

Commit f98e34a

Browse files
authored
[PHP 8.2] Fix ${var} string interpolation deprecation (#2117)
PHP 8.2 deprecates `"${var}"` string interpolation pattern. This fixes the only such occurrence in `spatie/laravel-permission` package. - [PHP 8.2: `${var}` string interpolation deprecated](https://php.watch/versions/8.2/${var}-string-interpolation-deprecated) - [RFC](https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation)
1 parent fc841f8 commit f98e34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/UpgradeForTeams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ protected function getMigrationPath($date = null)
122122
{
123123
$date = $date ?: date('Y_m_d_His');
124124

125-
return database_path("migrations/${date}_{$this->migrationSuffix}");
125+
return database_path("migrations/{$date}_{$this->migrationSuffix}");
126126
}
127127
}

0 commit comments

Comments
 (0)