Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/think/route/Dispatch.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php

Check warning on line 1 in src/think/route/Dispatch.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: single_line_empty_body

Check warning on line 1 in src/think/route/Dispatch.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: declare_equal_normalize

Check warning on line 1 in src/think/route/Dispatch.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: blank_line_after_opening_tag
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
Expand Down Expand Up @@ -185,7 +185,9 @@

if ($class->hasProperty('middleware')) {
$reflectionProperty = $class->getProperty('middleware');
$reflectionProperty->setAccessible(true);
if (PHP_VERSION_ID < 80100) {
$reflectionProperty->setAccessible(true);
}

$middlewares = $reflectionProperty->getValue($controller);
$action = $this->request->action(true);
Expand Down
Loading