<?php declare(strict_types=1);
namespace Phan\Language\Element;

use Phan\Language\FQSEN;
use Phan\Language\FQSEN\FullyQualifiedClassName;

/**
 * This contains info for a single sub-node of a node of type \ast\AST_USE_TRAIT
 * (Which aliases of methods exist for this trait, which `insteadof` exist, etc)
 */
class TraitAdaptations
{
    /**
     * @var FQSEN
     */
    private $trait_fqsen;

    /**
     * @var TraitAliasSource[] maps alias methods from this trait
     *                         to the info about the source method
     */
    public $alias_methods;

    /**
     * @var bool[] Has an entry mapping name to true if a method with a given name is hidden.
     */
    public $hidden_methods;

    public function __construct(FQSEN $trait_fqsen)
    {
        $this->trait_fqsen = $trait_fqsen;
    }

    /**
     * Gets the FQSEN
     *
     * @return FQSEN the trait's FQSEN
     */
    public function getTraitFQSEN() : FQSEN
    {
        return $this->trait_fqsen;
    }
}

<?php declare(strict_types=1);
namespace Phan\Language\Element;

use Phan\Language\FQSEN;
use Phan\Language\FQSEN\FullyQualifiedClassName;

/**
 * This contains info for a single sub-node of a node of type \ast\AST_USE_TRAIT
 * (Which aliases of methods exist for this trait, which `insteadof` exist, etc)
 */
class TraitAdaptations
{
    /**
     * @var FQSEN
     */
    private $trait_fqsen;

    /**
     * @var TraitAliasSource[] maps alias methods from this trait
     *                         to the info about the source method
     */
    public $alias_methods = [];

    /**
     * @var bool[] Has an entry mapping name to true if a method with a given name is hidden.
     */
    public $hidden_methods = [];

    public function __construct(FQSEN $trait_fqsen)
    {
        $this->trait_fqsen = $trait_fqsen;
    }

    /**
     * Gets the FQSEN
     *
     * @return FQSEN the trait's FQSEN
     */
    public function getTraitFQSEN() : FQSEN
    {
        return $this->trait_fqsen;
    }
}

Fix error noticed when running Phan under php 7.2.0alpha1
Fix error noticed when running Phan under php 7.2.0alpha1

In php 7.2, `count()` can only be called on `array` or `Countable`.
It will emit a warning if it is called on other types, e.g. `null`,
`string`, etc.
