📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 09:11:50
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Php80
/
ValueObjectFactory
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/ValueObjectFactory
🔄 Refresh
✏️
Editing: StrStartsWithFactory.php
Read Only
<?php declare (strict_types=1); namespace Rector\Php80\ValueObjectFactory; use PhpParser\Node\Expr\FuncCall; use Rector\Php80\ValueObject\StrStartsWith; final class StrStartsWithFactory { public function createFromFuncCall(FuncCall $funcCall, bool $isPositive) : ?StrStartsWith { if ($funcCall->isFirstClassCallable()) { return null; } if (\count($funcCall->getArgs()) < 2) { return null; } $haystack = $funcCall->getArgs()[0]->value; $needle = $funcCall->getArgs()[1]->value; return new StrStartsWith($funcCall, $haystack, $needle, $isPositive); } }
💾 Save Changes
❌ Cancel