You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in my Sublime Text 4 Intelephense seems to be throwing errors on all my match codes even though they work perfectly fine.
Here's a working snippet from a Laravel project:
line 80: return match($this->investorable_type) {
line 81: 'App\Models\Person' => "/people/{$this->id}",
line 82: 'App\Models\Organization' => "/companies/{$this->id}",
line 83: };
And I would get these errors despite the fully functional codes:
80:16 info Array or string offset access with curly braces deprecated in PHP 7.4. Targeting PHP 8.0.10.
80:16 error Undefined function 'App\Models\match'. intelephense:1010intelephense:1034
81:32 error Unexpected '=>'. Expected '}'. intelephense:1001
81:57 error Unexpected ','. intelephense:1001
82:43 error Unexpected 'EncapsulatedAndWhitespace'. Expected ';'. intelephense:1001
82:65 error Unexpected '"'. intelephense:1001
Are there any settings that I may be missing that could be causing match to be flagged as errors?
Here's a copy of my LSP-intelephense.sublime-settings:
Hi, in my Sublime Text 4 Intelephense seems to be throwing errors on all my
match
codes even though they work perfectly fine.Here's a working snippet from a Laravel project:
And I would get these errors despite the fully functional codes:
Are there any settings that I may be missing that could be causing
match
to be flagged as errors?Here's a copy of my
LSP-intelephense.sublime-settings
:Thanks.
The text was updated successfully, but these errors were encountered: