-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip setting an exception as a default value in ApplyDefaultInsteadOf…
…NullCoalesceRector (#294) * Update ApplyDefaultInsteadOfNullCoalesceRector.php * Create skip_throw_exceptions.php.inc * Fix style; * Fix lint error; --------- Co-authored-by: Geni Jaho <jahogeni@gmail.com>
- Loading branch information
1 parent
f80e95e
commit 0a1ea90
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...or/Coalesce/ApplyDefaultInsteadOfNullCoalesceRector/Fixture/skip_throw_exceptions.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace RectorLaravel\Tests\Rector\Coalesce\ApplyDefaultInsteadOfNullCoalesceRector\Fixture; | ||
|
||
config('app.name') ?? throw new \Exception('No Google maps base URL configured.'); | ||
|
||
(new \Illuminate\Http\Request())->input('value') ?? throw new \Exception('No Google maps base URL configured.'); | ||
|
||
\Illuminate\Support\Env::get('APP_NAME') ?? throw new \Exception('No Google maps base URL configured.'); | ||
|
||
?> |