Skip to content

Commit

Permalink
Re-add failing assert, enable assertions on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Jan 28, 2022
1 parent 1a6f968 commit 35353c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
ini-values: zend.assertions=1, assert.exception=1
tools: composer:v2
coverage: none
extensions: decimal
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
ini-values: zend.assertions=1, assert.exception=1
tools: composer:v2
coverage: none

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public static function analyze(
/**
* Get the const storage from the parent or interface that this class is overriding.
*
* @return array{ClassLikeStorage, ?ClassConstantStorage}|null
* @return array{ClassLikeStorage, ClassConstantStorage}|null
*/
private static function getOverriddenConstant(
ClassLikeStorage $class_storage,
Expand Down Expand Up @@ -845,6 +845,7 @@ private static function getOverriddenConstant(
}

if ($parent_classlike_storage !== null) {
assert($parent_const_storage !== null);
return [$parent_classlike_storage, $parent_const_storage];
}
return null;
Expand Down

0 comments on commit 35353c6

Please sign in to comment.