mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1072] [CLOSED] Fix attempt of traversing bool in FileLockRegion #9116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/1072
Author: @kamazee
Created: 6/26/2014
Status: ❌ Closed
Base:
master← Head:fix_glob_call📝 Commits (1)
98075bcFix attempt of traversing bool in FileLockRegion📊 Changes
2 files changed (+11 additions, -4 deletions)
View changed files
📝
lib/Doctrine/ORM/Cache/Region/FileLockRegion.php(+7 -2)📝
tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php(+4 -2)📄 Description
Minor fix: on some platforms (i.e. ArchLinux)
glob()returnsfalsewhen nothing matched even though no errors occurred. As docs forglobsay, such behavior is expected (see ‘Note’ at http://php.net/glob)This made 1 existing test fail:
Traversing bool is no good and a small check wouldn't hurt there as far as I can tell.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.