Skip to content

Update laravel-logger.php #180

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: master
Choose a base branch
from
Open

Conversation

FeBe95
Copy link

@FeBe95 FeBe95 commented Jul 23, 2025

We copied the config to our own /config directory and PHPStan reported the following error:

 ------ ----------------------------------------------------- 
  Line   laravel-logger.php                                   
 ------ ----------------------------------------------------- 
  30     Expression on left side of ?? is not nullable.       
         🪪 nullCoalesce.expr                                 
 ------ ----------------------------------------------------- 

This happens because the (string) cast has a higher operator precedence than the ?? null coalescing operator.

I changed the code to use the built-in fallback of the env() function instead.

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