for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AlexMasterov\OAuth2\Client\Provider;
use League\OAuth2\Client\{
Provider\ResourceOwnerInterface,
Tool\ArrayAccessorTrait
};
class StackExchangeResourceOwner implements ResourceOwnerInterface
{
use ArrayAccessorTrait;
public function __construct(array $response = [])
$this->items = $this->getValueByKey($response, 'items', []);
$this->getValueByKey($response, 'items', array())
*
array
$items
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
/**
* @return array
*/
public function getId()
$items = $this->items;
$ids = [];
foreach ($items as $item) {
$ids[] = $this->getValueByKey($item, 'user_id');
return $ids;
public function toArray()
return $this->items;
* @var array
protected $items = [];
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..