[Bug]: Plugin setup fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with Configuration.php at line 120 and reproduce the failure using the linked pest-plugin-filament-auth repository and the local Composer repository steps. Compare the plugin creation and arch preset documentation with the composer post-autoload-dump path. Done means installing the plugin no longer raises the undefined preset() method error during autoload generation.
Written by the indexing model from the issue text.
Description
What Happened
I followed the plugin creation instructions and added an arch preset.
However, while testing out the plugin on my local, I got this error at the composer autoload dump script:
PHP Fatal error: Uncaught Error: Call to undefined method Pest\PendingCalls\UsesCall::preset() in /Users/damms005/Herd/tims/vendor/pestphp/pest/src/Configuration.php:120
How to Reproduce
- Clone the plugin repo to local
- Install a fresh Laravel app, and setup a local composer repository for the plugin:
"repositories": [
{
"type": "path",
"url": "/your-local-path-to-the-cloned/pest-plugin-filament-auth",
"options": {
"symlink": true
}
}
]
- Install the package from the local repository:
composer require --dev damms005/pest-plugin-filament-auth
See error:
// some lines skippe dfor brevity
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception
Please run [./vendor/bin/pest] instead.
In Configuration.php line 120:
Call to undefined method Pest\PendingCalls\UsesCall::preset(
Sample Repository
https://github.com/damms005/pest-plugin-filament-auth
Pest Version
latest
PHP Version
8.4.7
Operation System
macOS
Notes
No response
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pestphp/pest
-
[Bug]: [mutate] Windows: @pest-mutate-ignore comments land on line 1 in files with LF line endings Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100