Skip to content

[5.8] Use coalesce operator#28287

Merged
taylorotwell merged 1 commit into
laravel:5.8from
rentalhost:null-coalesce-operator
Apr 22, 2019
Merged

[5.8] Use coalesce operator#28287
taylorotwell merged 1 commit into
laravel:5.8from
rentalhost:null-coalesce-operator

Conversation

@rentalhost
Copy link
Copy Markdown
Contributor

@rentalhost rentalhost commented Apr 21, 2019

Following #28280.

Applying null coalesce operator when possible in 7 files and 8 cases.

There is another case on file src/Illuminate/View/Concerns/ManagesLayouts.php, but it was not too much accepted because it is hard to read. 😄

Thanks to @kalessil Php Inspections ​(EA Ultimate) plugin.

@rentalhost rentalhost force-pushed the null-coalesce-operator branch from 1fb6dab to f7bb1ca Compare April 21, 2019 17:14
Comment thread src/Illuminate/View/Concerns/ManagesLayouts.php Outdated
Comment thread src/Illuminate/View/Concerns/ManagesLayouts.php Outdated
@rentalhost rentalhost force-pushed the null-coalesce-operator branch from f7bb1ca to 128ab45 Compare April 22, 2019 13:12
@taylorotwell taylorotwell merged commit 230a35d into laravel:5.8 Apr 22, 2019
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.

3 participants