for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* proxy class for testing abstract strategy
*/
namespace Graviton\SecurityBundle\Tests\Authentication\Strategies;
use Graviton\SecurityBundle\Authentication\Strategies\AbstractHttpStrategy;
use Symfony\Component\HttpFoundation\Request;
* Class AbstractHttpStrategyProxy
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://swisscom.ch
class AbstractHttpStrategyProxy extends AbstractHttpStrategy
{
* {@inheritdoc}
* @param string $header header
* @param string $fieldName field name
* @return string
public function extractFieldInfo($header, $fieldName)
return parent::extractFieldInfo($header, $fieldName);
$header
string
object<Symfony\Component...tpFoundation\HeaderBag>
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
}
* @return void
public function validateField($header, $fieldName)
parent::validateField($header, $fieldName);
* @param Request $request request
public function apply(Request $request)
* @inheritDoc
* @return array
public function getRoles()
return [];
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: