Skip to content

Commit

Permalink
Enable type checking and update phpstan/phpstan dependency to version… (
Browse files Browse the repository at this point in the history
#54)

* Enable type checking and update phpstan/phpstan dependency to version 1.10.41

* Fix styling

---------

Co-authored-by: stefro <[email protected]>
  • Loading branch information
stefro and stefro authored Nov 20, 2023
1 parent 58cc31b commit 0c39703
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
- name: Execute tests
run: composer test:coverage

# Temporarily disabled due to error: Argument #9 ($signatureMapProvider) must be of type PHPStan\Reflection\SignatureMap\SignatureMapProvider, PHPStan\PhpDoc\PhpDocInheritanceResolver given
# - name: Type check
# if: ${{ contains(matrix.laravel, '10.*') && contains(matrix.dependency-version, 'prefer-stable') }}
# run: composer type:check
- name: Type check
if: ${{ contains(matrix.laravel, '10.*') && contains(matrix.dependency-version, 'prefer-stable') }}
run: composer type:check
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21 | ^2.0",
"pestphp/pest-plugin-type-coverage": "^2.0",
"phpstan/phpstan": "1.10.41",
"spatie/laravel-ray": "^1.32"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelLangCountryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function boot(): void

$this->app['router']
->middleware(config('lang-country.lang_switcher_middleware'))
->get('/' . config('lang-country.lang_switcher_uri','change_lang_country') . '/{lang_country}', 'Stefro\LaravelLangCountry\Controllers\LangCountrySwitchController@switch')
->get('/' . config('lang-country.lang_switcher_uri', 'change_lang_country') . '/{lang_country}', 'Stefro\LaravelLangCountry\Controllers\LangCountrySwitchController@switch')
->name('lang_country.switch');

\Event::listen(Login::class, UserAuthenticated::class);
Expand Down

0 comments on commit 0c39703

Please sign in to comment.