for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebStream\Test\Model;
use WebStream\Core\CoreModel;
use WebStream\Annotation\Attributes\Database;
use WebStream\Annotation\Attributes\Query;
/**
* @Database(driver="WebStream\Database\Driver\Mysql", config="config/database.mysql.ini")
*/
class Test1Model extends CoreModel
{
public function test1()
return $this->select("SELECT * FROM T_WebStream LIMIT :limit, :offset", ["limit" => 0, "offset" => 1])
select()
WebStream\Test\Model\Test1Model
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ select("SELECT * FROM T_WebStream LIMIT :limit, :offset", ["limit" => 0, "offset" => 1])
->toEntity("WebStream\Test\Model\Entity\Test1Entitiy");
}
* @Query(file="query/webstream-test-mysql-mapper.xml")
public function test2()
return $this->querySelect(["limit" => 0, "offset" => 1]);
querySelect()
return $this->/** @scrutinizer ignore-call */ querySelect(["limit" => 0, "offset" => 1]);