You are here

private function MessageTrait::arrayContainsOnlyStrings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::arrayContainsOnlyStrings()

Test that an array contains only strings

Parameters

array $array:

Return value

bool

2 calls to MessageTrait::arrayContainsOnlyStrings()
MessageTrait::withAddedHeader in vendor/zendframework/zend-diactoros/src/MessageTrait.php
Return an instance with the specified header appended with the given value.
MessageTrait::withHeader in vendor/zendframework/zend-diactoros/src/MessageTrait.php
Return an instance with the provided header, replacing any existing values of any headers with the same case-insensitive name.

File

vendor/zendframework/zend-diactoros/src/MessageTrait.php, line 319

Class

MessageTrait
Trait implementing the various methods defined in MessageInterface.

Namespace

Zend\Diactoros

Code

private function arrayContainsOnlyStrings(array $array) {
  return array_reduce($array, [
    __CLASS__,
    'filterStringValue',
  ], true);
}