private function arrayDiffAssoc( array $from, array $to ): array {
		$diff = [];

		foreach ( $from as $key => $value ) {
			if ( !array_key_exists( $key, $to ) || !$this->valueComparer->valuesAreEqual( $to[$key], $value ) ) {
				$diff[$key] = $value;
			}
		}

		return $diff;
	}
private function arrayDiffAssoc( array $from, array $to ): array {
		$diff = [];

		foreach ( $from as $key => $value ) {
			if ( !array_key_exists( $key, $to ) || !$this->valueComparer->valuesAreEqual( $to[$key], $value ) ) {
				$diff[$key] = $value;
			}
		}

		return $diff;
	}
private function arrayDiffAssoc ( array $ from , array $ to ) : array { $ diff = [ ] ; foreach ( $ from as $ key => $ value ) { if ( ! array_key_exists ( $ key , $ to ) || ! $ this -> valueComparer -> valuesAreEqual ( $ to [ $ key ] , $ value ) ) { $ diff [ $ key ] = $ value ; } } return $ diff ; }
Similar to the native array_diff_assoc function, except that it will
spot differences between array values. Very weird the native
function just ignores these...

@see http://php.net/manual/en/function.array-diff-assoc.php

@param array $from
@param array $to

@return array
Similar to the native array_diff_assoc function except that it will spot differences between array values . Very weird the native function just ignores these ...