Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.0] [Debug] Add parameter type-hints where possible #32217

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixing possible FileLinkFormatter in register and removing reduntant …
…docblocks
  • Loading branch information
Matthew Smeets committed Jul 17, 2019
commit 02eb9fdaad951b0a03c932052995aac908d5142e
5 changes: 0 additions & 5 deletions src/Symfony/Component/Debug/DebugClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ public static function disable()
}
}

/**
* @return string|null
*/
public function findFile(string $class = null)
{
return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null;
Expand All @@ -139,8 +136,6 @@ public function findFile(string $class = null)
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
*
* @throws \RuntimeException
*/
public function loadClass(string $class)
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Debug/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public function __construct(bool $debug = true, string $charset = null, $fileLin
*
* @param bool $debug Enable/disable debug mode, where the stack trace is displayed
* @param string|null $charset The charset used by exception messages
* @param string|null $fileLinkFormat The IDE link template
* @param string|FileLinkFormatter|null $fileLinkFormat The IDE link template
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be added in older branches

*
* @return static
*/
public static function register(bool $debug = true, string $charset = null, string $fileLinkFormat = null)
public static function register(bool $debug = true, string $charset = null, $fileLinkFormat = null)
{
$handler = new static($debug, $charset, $fileLinkFormat);

Expand Down