src/AbstractBlock.php
protected function lineIsObjectOf(BlockInterface $block = null, $objectType, $forceStrict = false)
    {
        if ($block === null) {
            return false;
        }

        $requiredTypeNamespace = $this->getFullClassNamespace($objectType);
        $blockContinueType = $this->getFullClassNamespace(BlockTypes::BLOCK_CONTINUE);

        if ($block instanceof $requiredTypeNamespace) {
            return true;
        }

        if ($block instanceof $blockContinueType && $forceStrict === false) {
            return true;
        }

        return false;
    }
protected function lineIsObjectOf(BlockInterface $block = null, $objectType, $forceStrict = false)
    {
        if ($block === null) {
            return false;
        }

        $requiredTypeNamespace = $this->getFullClassNamespace($objectType);
        $blockContinueType = $this->getFullClassNamespace(BlockTypes::BLOCK_CONTINUE);

        if ($block instanceof $requiredTypeNamespace) {
            return true;
        }

        if ($block instanceof $blockContinueType && $forceStrict === false) {
            return true;
        }

        return false;
    }
@param null|BlockInterface $block
@param string $objectType
@param bool|false $forceStrict

@return bool