for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Micro framework package.
*
* (c) Stanislau Komar <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Micro\Plugin\Doctrine\Configuration\Driver;
trait UserPasswordTrait
{
protected static string $CFG_IN_USER = 'ORM_%s_USER';
protected static string $CFG_PASSWORD = 'ORM_%s_PASSWORD';
public function getUser(): ?string
return $this->get(self::$CFG_IN_USER);
get()
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 */ get(self::$CFG_IN_USER);
}
public function getPassword(): ?string
return $this->get(self::$CFG_PASSWORD);