diff options
author | Andrew Dolgov <[email protected]> | 2021-02-26 19:55:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-26 19:55:49 +0300 |
commit | c521e26a1961371fcacde467d79bd3ee4162c2b2 (patch) | |
tree | 0a7ae63de0daa8d8eaba5e88dfaa6eb41bcfd5c0 | |
parent | d6bb77f452c05e84039dde403fdafbf4f1633e6f (diff) |
use absolute namespace for readability
-rw-r--r-- | phpstan.neon | 1 | ||||
-rwxr-xr-x | plugins/af_readability/init.php | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/phpstan.neon b/phpstan.neon index 1b8eecd14..8fe36c8b4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -22,5 +22,6 @@ parameters: - plugins.local/**/tests/* - plugins/**/test/* - plugins.local/**/test/* + - plugins.local/*/vendor/intervention/* paths: - . diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 8f7df579e..172006d34 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -1,8 +1,8 @@ <?php -require "vendor/autoload.php"; +require_once __DIR__ . "/vendor/autoload.php"; -use andreskrey\Readability\Readability; -use andreskrey\Readability\Configuration; +use \andreskrey\Readability\Readability; +use \andreskrey\Readability\Configuration; class Af_Readability extends Plugin { |