Skip to content

Commit

Permalink
PHP 8 ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Dec 26, 2020
1 parent e4a7e0e commit a7acbc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ filter:
- 'test/'

build:
environment:
php:
version: '7.4'

nodes:
analysis:
tests:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php
php:
- '7.3'
- '7.4'
- '8.0'

install:
- composer self-update
Expand Down
2 changes: 1 addition & 1 deletion src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function combine(string $uri1, string $uri2): string
}

// Handle spacial cases for the fragment part of the URI.
if (!isset($parts2['fragment']))
if (($parts2['fragment'] ?? '')==='')
{
$combined_uri_parts['fragment'] = null;
}
Expand Down

0 comments on commit a7acbc3

Please sign in to comment.