Skip to content

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Jan 20, 2026

Summary

  • Fix strpos() casting bug in ColumnParser.php:77 - (bool)strpos($type, '?') incorrectly returns false when ? is found at position 0 because strpos() returns 0 (falsy). Changed to str_contains() which returns a boolean.
  • Replace 6 loose comparisons (==/!=) with strict comparisons (===/!==) in Manager.php for version and breakpoint checks to prevent type coercion issues.

- Fix strpos() casting bug in ColumnParser - (bool)strpos() returns
  false when needle is at position 0, use str_contains() instead
- Replace loose comparisons (== !=) with strict comparisons (=== !==)
  in Manager.php for version and breakpoint checks
PostgreSQL and SQL Server return boolean columns as strings or actual
booleans instead of integers, causing strict equality checks to fail.
@markstory markstory merged commit 937e915 into 5.x Jan 21, 2026
14 checks passed
@markstory markstory deleted the fix/type-safety-improvements branch January 21, 2026 00:52
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