Skip to content

Commit

Permalink
refactor: Fix phpstan isset.offset (#9383)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Jan 8, 2025
1 parent 72b7f8a commit 9de9856
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,7 @@ protected function compileWhereHaving(string $qbKey): string
) {
continue;
}

// $matches = [
// 0 => '(test <= foo)', /* the whole thing */
// 1 => '(', /* optional */
Expand All @@ -3184,7 +3185,7 @@ protected function compileWhereHaving(string $qbKey): string
// 5 => ')' /* optional */
// ];

if (isset($matches[4]) && $matches[4] !== '') {
if ($matches[4] !== '') {
$protectIdentifiers = false;
if (str_contains($matches[4], '.')) {
$protectIdentifiers = true;
Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/isset.offset.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ includes:
- empty.property.neon
- function.alreadyNarrowedType.neon
- generator.valueType.neon
- isset.offset.neon
- isset.property.neon
- method.alreadyNarrowedType.neon
- method.childParameterType.neon
Expand Down

0 comments on commit 9de9856

Please sign in to comment.