Skip to content

Commit

Permalink
[develop] Adds Laravel 11 support (#298)
Browse files Browse the repository at this point in the history
* Adds Laravel 11 support

* Fixes return type

* Fixes windows php versions

* Removes `--verbose`
  • Loading branch information
nunomaduro authored Dec 29, 2023
1 parent ccd008a commit ee5b650
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
php: [8.2, 8.3]

name: PHP ${{ matrix.php }}

Expand All @@ -36,15 +36,15 @@ jobs:
run: composer install --no-interaction --prefer-dist

- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit

windows_tests:
runs-on: windows-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
php: [8.2, 8.3]

name: PHP ${{ matrix.php }} - Windows

Expand All @@ -70,4 +70,4 @@ jobs:
run: composer install --no-interaction --prefer-dist

- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}
],
"require": {
"php": "^8.1",
"illuminate/filesystem": "^10.20",
"illuminate/support": "^10.20",
"php": "^8.2",
"illuminate/filesystem": "^11.0",
"illuminate/support": "^11.0",
"laravel/prompts": "^0.1",
"symfony/console": "^6.0",
"symfony/process": "^6.0"
"symfony/console": "^7.0",
"symfony/process": "^7.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^10.4"
},
"bin": [
"bin/laravel"
Expand Down
15 changes: 1 addition & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="vendor/autoload.php"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
<phpunit colors="true">
<testsuites>
<testsuite name="Laravel Installer Test Suite">
<directory suffix="Test.php">./tests</directory>
Expand Down
2 changes: 1 addition & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->validateStackOption($input);

Expand Down

0 comments on commit ee5b650

Please sign in to comment.