Skip to content

Fatal error: Uncaught Error: Cannot access private property #51

@xyz-caibing

Description

@xyz-caibing

class App
{
private $rootPath;
}
class Load
{
public static function register(App $app)
{
self::$namespaceMap = [
'Framework' => $app->rootPath
];
}
}
这里的app->rootPath 是私有的,应该只有App类内部可以使用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions