72 if ( $this->keys !== $expectedKeys ) {
73 $extraKeys = array_diff( $this->keys, $expectedKeys );
74 $missingKeys = array_diff( $expectedKeys, $this->keys );
75 Assert::precondition( !$extraKeys && !$missingKeys,
78 ?
'Unsupported options passed: ' . implode(
', ', $extraKeys ) .
'!'
80 ) . ( $extraKeys && $missingKeys ?
' ' :
'' ) . (
82 ?
'Required options missing: ' . implode(
', ', $missingKeys ) .
'!'