-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2518 from briannesbitt/merge-3.x-master
Merge 3.x master
- Loading branch information
Showing
19 changed files
with
386 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Carbon package. | ||
* | ||
* (c) Brian Nesbitt <brian@nesbot.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Carbon\PHPStan; | ||
|
||
if (!class_exists(LazyMacro::class, false)) { | ||
abstract class LazyMacro extends AbstractMacro | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getFileName(): ?string | ||
{ | ||
return $this->reflectionFunction->getFileName(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getStartLine(): ?int | ||
{ | ||
return $this->reflectionFunction->getStartLine(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getEndLine(): ?int | ||
{ | ||
return $this->reflectionFunction->getEndLine(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of the Carbon package. | ||
* | ||
* (c) Brian Nesbitt <brian@nesbot.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Carbon\PHPStan; | ||
|
||
if (!class_exists(LazyMacro::class, false)) { | ||
abstract class LazyMacro extends AbstractMacro | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* @return string|false | ||
*/ | ||
public function getFileName() | ||
{ | ||
return $this->reflectionFunction->getFileName(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @return int|false | ||
*/ | ||
public function getStartLine() | ||
{ | ||
return $this->reflectionFunction->getStartLine(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @return int|false | ||
*/ | ||
public function getEndLine() | ||
{ | ||
return $this->reflectionFunction->getEndLine(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.