63 if ( $this->keys !== $expectedKeys ) {
64 $extraKeys = array_diff( $this->keys, $expectedKeys );
65 $missingKeys = array_diff( $expectedKeys, $this->keys );
66 Assert::precondition( !$extraKeys && !$missingKeys,
69 ?
'Unsupported options passed: ' . implode(
', ', $extraKeys ) .
'!'
71 ) . ( $extraKeys && $missingKeys ?
' ' :
'' ) . (
73 ?
'Required options missing: ' . implode(
', ', $missingKeys ) .
'!'