Skip to content

bump required Php version #413

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

m-graham
Copy link

Laravel 10 was supported until February 4th, 2025.

The parser requires Php 8.2, and will throw errors on previous versions.

An example of an error that can happen:

getClosureUsedVariables was added in Php 8.1. Due to it not existing in Php 8.0 it fails.

Error: __VSCODE_LARAVEL_START_OUTPUT__
   Error 

  Call to undefined method ReflectionFunction::getClosureUsedVariables()

  at vendor/_laravel_ide/discover-ea280fb1636eb761c4fd23f76666e397.php:134
    130▕                         $closureThis = $reflection->getClosureThis();
    131▕ 
    132▕                         if ($closureThis !== null) {
    133▕                             if (get_class($closureThis) === \Illuminate\Auth\Access\Gate::class) {
  ➜ 134▕                                 $vars = $reflection->getClosureUsedVariables();
    135▕ 
    136▕                                 if (isset($vars['callback'])) {
    137▕                                     [$policyClass, $method] = explode('@', $vars['callback']);
    138▕

Laravel 10 was supported until February 4th, 2025.

The parser requires Php 8.2, and will throw errors on previous versions.
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

Successfully merging this pull request may close these issues.

1 participant