Skip to content

Commit 7888327

Browse files
committed
[BCB] Remove ClassReflection::getFileNameWithPhpDocs(), use getFileName() instead
1 parent db02a30 commit 7888327

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

UPGRADING.md

+1
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,4 @@ Instead of `PHPStanTestCase::createBroker()`, call `PHPStanTestCase::createRefle
239239
* Remove `RegexArrayShapeMatcher::matchType()`, use `matchExpr()` instead
240240
* Remove unused `PHPStanTestCase::$useStaticReflectionProvider`
241241
* Remove `PHPStanTestCase::getReflectors()`, use `getReflector()` instead
242+
* Remove `ClassReflection::getFileNameWithPhpDocs()`, use `getFileName()` instead

src/Reflection/ClassReflection.php

-8
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,6 @@ public function getFileName(): ?string
198198
return $this->filename = $fileName;
199199
}
200200

201-
/**
202-
* @deprecated Use getFileName()
203-
*/
204-
public function getFileNameWithPhpDocs(): ?string
205-
{
206-
return $this->getFileName();
207-
}
208-
209201
public function getParentClass(): ?ClassReflection
210202
{
211203
if (!is_bool($this->cachedParentClass)) {

0 commit comments

Comments
 (0)