Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/format-php.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Code Style

on:
pull_request:
paths:
- '**.php'
pull_request:
paths:
- "**.php"

jobs:
php-cs-fixer:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: PHPStan

on:
pull_request:
paths:
- '**.php'
- 'phpstan.neon.dist'
- '.github/workflows/phpstan.yml'
pull_request:
paths:
- "**.php"
- "phpstan.neon.dist"
- ".github/workflows/phpstan.yml"

jobs:
phpstan:
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* Text Domain: sage
* License: MIT License
* License URI: https://opensource.org/licenses/MIT
* Requires PHP: 8.1
* Requires PHP: 8.2
* Requires at least: 5.9
*/
```
Expand All @@ -81,9 +81,8 @@
- In your theme's `functions.php`, use the `Yard\Nutshell\bootloader()` helper to bootstrap Acorn with Nutshell's enhancements.

```diff
-\Roots\bootloader()->boot();
+define('ACORN_BASEPATH', __DIR__);
+\Yard\Nutshell\bootloader()->boot();
-\Roots\Acorn\Application::configure()->boot();
+\Yard\Nutshell\bootloader(__DIR__)->boot();
```

3. **Update app config**
Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
"config": {
"sort-packages": true,
"platform": {
"php": "8.1"
"php": "8.2"
}
},
"require": {
"php": ">=8.1",
"roots/acorn": "^4.3",
"php": ">=8.2",
"roots/acorn": "^5.0",
"sentry/sentry-laravel": "^4.4",
"spatie/laravel-csp": "^2.10"
"spatie/laravel-csp": "^2.10",
"yard/logger": "^1.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"orchestra/testbench": "^8.31",
"szepeviktor/phpstan-wordpress": "^1.3",
"larastan/larastan": "^3.6",
"orchestra/testbench": "^10.5",
"szepeviktor/phpstan-wordpress": "^2.0",
"yard/php-cs-fixer-rules": "^1.0"
},
"autoload": {
Expand Down
Loading