Skip to content

Commit

Permalink
fix(aop): Undefined index:
Browse files Browse the repository at this point in the history
try $classFile = $this->classLoaderMap[$classFullName] ?? '';
  • Loading branch information
eeliu committed Nov 6, 2023
1 parent 02cb27c commit 6c53ce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* remove setting.ini
* AspectClassHandle api

* remove `PINPOINT_USE_CACHE`

### v2.0.2
* support thinkphp5.0.x
Expand Down
8 changes: 2 additions & 6 deletions lib/Pinpoint/Common/MonitorClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ public function createFrom(array $clsMap)
public function findFile(string $classFullName): string
{
Logger::Inst()->debug("try to loadclass '$classFullName'", [__CLASS__]);
$classFile = $this->classLoaderMap[$classFullName];
if (isset($classFile)) {
return $classFile;
}

return '';
$classFile = $this->classLoaderMap[$classFullName] ?? '';
return $classFile;
}

public function insertMapping($cl, $file)
Expand Down

0 comments on commit 6c53ce9

Please sign in to comment.