src/Definition/ValueUtils.php
public static function dumpValue($value, $containerVariable, array $usedVariables): InlineEntryInterface
    {
        if (is_array($value)) {
            return self::dumpArray($value, $containerVariable, $usedVariables);
        } elseif ($value instanceof ReferenceInterface) {
            return self::dumpReference($value, $containerVariable, $usedVariables);
        } elseif ($value instanceof DumpableInterface) {
            return self::dumpDefinition($value, $containerVariable, $usedVariables);
        } elseif (is_object($value) || is_resource($value)) {
            throw new \RuntimeException('Unable to dump a container if a parameter is an object or a resource.');
        } else {
            return new InlineEntry(var_export($value, true), null, $usedVariables, false);
        }
    }
public static function dumpValue($value, $containerVariable, array $usedVariables): InlineEntryInterface
    {
        if (is_array($value)) {
            return self::dumpArray($value, $containerVariable, $usedVariables);
        } elseif ($value instanceof ReferenceInterface) {
            return self::dumpReference($value, $containerVariable, $usedVariables);
        } elseif ($value instanceof DumpableInterface) {
            return self::dumpDefinition($value, $containerVariable, $usedVariables);
        } elseif (is_object($value) || is_resource($value)) {
            throw new \RuntimeException('Unable to dump a container if a parameter is an object or a resource.');
        } else {
            return new InlineEntry(var_export($value, true), null, $usedVariables, false);
        }
    }
public static function dumpValue ( $ value , $ containerVariable , array $ usedVariables ) : InlineEntryInterface { if ( is_array ( $ value ) ) { return self :: dumpArray ( $ value , $ containerVariable , $ usedVariables ) ; } elseif ( $ value instanceof ReferenceInterface ) { return self :: dumpReference ( $ value , $ containerVariable , $ usedVariables ) ; } elseif ( $ value instanceof DumpableInterface ) { return self :: dumpDefinition ( $ value , $ containerVariable , $ usedVariables ) ; } elseif ( is_object ( $ value ) || is_resource ( $ value ) ) { throw new \ RuntimeException ( 'Unable to dump a container if a parameter is an object or a resource.' ) ; } else { return new InlineEntry ( var_export ( $ value , true ) , null , $ usedVariables , false ) ; } }
Dumps values.

@param mixed  $value
@param string $containerVariable
@param array  $usedVariables

@return InlineEntryInterface
Dumps values .