Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] False errors on valid Spatie package method calls #186

Open
avt00 opened this issue Apr 20, 2024 · 0 comments
Open

[Bug Report] False errors on valid Spatie package method calls #186

avt00 opened this issue Apr 20, 2024 · 0 comments

Comments

@avt00
Copy link

avt00 commented Apr 20, 2024

Versions

  • PHP version: 8.2.2
  • Laravel version: 10.48.8
  • Enlightn version: 2.10.0
  • Enlightn Pro version (if applicable):

Description

During the execution of Enlightn's checks (specifically, Check 33/66), an error is identified indicating that certain method calls within Spatie packages are believed to be invalid. Enlightn lags these method calls as nonexistent, which is not expected behavior

Steps to Reproduce

  1. Install the package spatie/laravel-medialibrary via composer require spatie/laravel-medialibrary "^10.0.0"
  2. Attempt to manipulate an image using the following code snippet:
Image::load($filePath)
    ->width(100)
    ->height(100)
    ->save();
  1. Call to an undefined method Spatie\Image\Manipulations::save() when running checks

Expected behavior:
The expected outcome is that the Enlightn checks run without falsely identifying valid method calls within Spatie packages as being invalid or nonexistent.

Actual behavior:

When running the Enlightn checks, an error is encountered that incorrectly flags certain method calls as invalid, directly impacting the usability of Spatie packages within the project.

Additional Information

n/a

@avt00 avt00 changed the title False errors on valid Spatie package method calls [Bug Report] False errors on valid Spatie package method calls Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant