From 914984b669b905dd60d88a470bb4be1cd2113cfa Mon Sep 17 00:00:00 2001 From: Fenikkusu Date: Sat, 1 Jan 2022 15:53:56 -0500 Subject: [PATCH] Adding Interface Check --- CHANGELOG.md | 1 + Library/Classes/Entry.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 083800d16..96427988f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org). ### Fixed - Fixed left `null` with `string` condition [#2299](https://github.com/zephir-lang/zephir/issues/2299) - Improved support of `mixed` type [#2330](https://github.com/zephir-lang/zephir/issues/2330) +- Fixed Interfaces Breaking Child Projects Of Same Root Level Namespace [#2334](https://github.com/zephir-lang/zephir/issues/2334) ## [0.15.2] - 2021-10-24 ### Fixed diff --git a/Library/Classes/Entry.php b/Library/Classes/Entry.php index 31ae696ac..a1f8f548f 100644 --- a/Library/Classes/Entry.php +++ b/Library/Classes/Entry.php @@ -98,7 +98,7 @@ public function get(): string return $this->classEntries[$className][0]; } - if (class_exists($this->classname)) { + if (class_exists($this->classname) || interface_exists($this->classname)) { $reflection = new ReflectionClass($this->classname); $className = $reflection->getName();