Skip to content

Commit b6768a3

Browse files
committed
CS: Use "self" keyword instead of class name if possible
1 parent 4186b57 commit b6768a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Definition/Builder/ExprBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function end()
224224
public static function buildExpressions(array $expressions)
225225
{
226226
foreach ($expressions as $k => $expr) {
227-
if ($expr instanceof ExprBuilder) {
227+
if ($expr instanceof self) {
228228
$if = $expr->ifPart;
229229
$then = $expr->thenPart;
230230
$expressions[$k] = function ($v) use ($if, $then) {

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
8282
try {
8383
$loader = $this->resolve($resource, $type);
8484

85-
if ($loader instanceof FileLoader && null !== $this->currentDir) {
85+
if ($loader instanceof self && null !== $this->currentDir) {
8686
// we fallback to the current locator to keep BC
8787
// as some some loaders do not call the parent __construct()
8888
// @deprecated should be removed in 3.0

0 commit comments

Comments
 (0)