Skip to content

Fix build #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"nette/forms": "^3.0",
"nette/utils": "^2.3.0 || ^3.0.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^9.6"
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

parameters:
Expand Down
4 changes: 2 additions & 2 deletions src/Reflection/Nette/HtmlClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class HtmlClassReflectionExtension implements MethodsClassReflectionExtension, P

public function hasMethod(ClassReflection $classReflection, string $methodName): bool
{
return $classReflection->getName() === 'Nette\Utils\Html' || $classReflection->isSubclassOf('Nette\Utils\Html');
return $classReflection->is('Nette\Utils\Html');
}

public function getMethod(ClassReflection $classReflection, string $methodName): MethodReflection
Expand All @@ -23,7 +23,7 @@ public function getMethod(ClassReflection $classReflection, string $methodName):

public function hasProperty(ClassReflection $classReflection, string $propertyName): bool
{
return $classReflection->getName() === 'Nette\Utils\Html' || $classReflection->isSubclassOf('Nette\Utils\Html');
return $classReflection->is('Nette\Utils\Html');
}

public function getProperty(ClassReflection $classReflection, string $propertyName): PropertyReflection
Expand Down