Skip to content

Commit 4c4c947

Browse files
authored
Merge pull request #339 from tighten/tm/upgrade-laravel-zero
Upgrade Laravel Zero to v11
2 parents add0429 + 64d80a0 commit 4c4c947

File tree

6 files changed

+31
-40
lines changed

6 files changed

+31
-40
lines changed

.github/workflows/run-tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, windows-latest, macos-latest]
13-
php: [8.1, 8.2, 8.3]
13+
php: [8.2, 8.3, 8.4]
14+
1415
name: ${{ matrix.os }} - PHP ${{ matrix.php }}
1516

1617
runs-on: ${{ matrix.os }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
/.vagrant
55
.phpunit.result.cache
66
/storage
7+
.phpunit.cache/
78
phpunit.xml
89
composer.lock

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli-alpine
1+
FROM php:8.2-cli-alpine
22

33
ENV TAKEOUT_CONTAINER=1
44

bootstrap/app.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
|
1212
*/
1313

14-
$app = new LaravelZero\Framework\Application(
14+
use LaravelZero\Framework\Application;
15+
16+
$app = new Application(
1517
dirname(__DIR__)
1618
);
1719

composer.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0",
19+
"php": "^8.2",
2020
"ext-json": "*",
2121
"ext-pcntl": "*",
2222
"ext-posix": "*",
2323
"composer/semver": "^3.4",
2424
"guzzlehttp/psr7": "^2.6"
2525
},
2626
"require-dev": {
27-
"guzzlehttp/guzzle": "^7.4",
28-
"laravel-zero/framework": "^9.0",
27+
"guzzlehttp/guzzle": "^7.5",
28+
"laravel-zero/framework": "^11.0",
2929
"mockery/mockery": "^1.3.1",
30-
"nunomaduro/laravel-console-menu": "^3.3",
31-
"phpunit/phpunit": "^9.0",
30+
"nunomaduro/laravel-console-menu": "^3.4",
31+
"phpunit/phpunit": "^10.5",
3232
"squizlabs/php_codesniffer": "^3.5",
33-
"tightenco/tlint": "^6.0"
33+
"tightenco/tlint": "^9.3"
3434
},
3535
"autoload": {
3636
"psr-4": {
@@ -49,10 +49,7 @@
4949
"preferred-install": "dist",
5050
"sort-packages": true,
5151
"optimize-autoloader": true,
52-
"platform-check": false,
53-
"platform": {
54-
"php": "8.0.2"
55-
}
52+
"platform-check": false
5653
},
5754
"scripts": {
5855
"lint:check": [

phpunit.xml.dist

+17-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false"
12-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13-
<coverage processUncoveredFiles="true">
14-
<include>
15-
<directory suffix=".php">./app</directory>
16-
</include>
17-
</coverage>
18-
<testsuites>
19-
<testsuite name="Feature">
20-
<directory suffix="Test.php">./tests/Feature</directory>
21-
</testsuite>
22-
<testsuite name="Unit">
23-
<directory suffix="Test.php">./tests/Unit</directory>
24-
</testsuite>
25-
</testsuites>
26-
<php>
27-
<server name="APP_ENV" value="testing"/>
28-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Feature">
5+
<directory suffix="Test.php">./tests/Feature</directory>
6+
</testsuite>
7+
<testsuite name="Unit">
8+
<directory suffix="Test.php">./tests/Unit</directory>
9+
</testsuite>
10+
</testsuites>
11+
<php>
12+
<server name="APP_ENV" value="testing"/>
13+
</php>
14+
<source>
15+
<include>
16+
<directory suffix=".php">./app</directory>
17+
</include>
18+
</source>
2919
</phpunit>

0 commit comments

Comments
 (0)