Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed May 20, 2023
1 parent 6bb20ea commit 7391922
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
php: [7.2, 8.1, 8.2]
php: [7.2, 8.2]
dependency-version: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@

// function_notation
// 'date_time_create_from_format_call' => true,
'native_function_invocation' => [
'include' => ['@compiler_optimized', 'is_scalar'],
'exclude' => [],
'scope' => 'namespaced',
'strict' => true,
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/HasOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ private function normalizeOptions(array $options): array
return $normalizedOptions;
}

if (is_scalar($option)) {
if (\is_scalar($option)) {
if (\is_int($key)) {
$normalizedOptions[(string) $option] = (string) $option;

Expand Down

0 comments on commit 7391922

Please sign in to comment.