File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/Symfony/Component/Ldap/Adapter/ExtLdap Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -124,19 +124,19 @@ private function getConnectionResource()
124124 }
125125
126126 /**
127- * @param string $dn Distinguished name to batch modify
128- * @param iterable|UpdateOperation[] $modifications An array or iterable of Modification instances
127+ * @param string $dn Distinguished name to apply operations on
128+ * @param iterable|UpdateOperation[] $operations An array or iterable of Modification instances
129129 *
130130 * @throws UpdateOperationException in case of an error
131131 */
132- public function applyOperations (string $ dn , iterable $ modifications ): void
132+ public function applyOperations (string $ dn , iterable $ operations ): void
133133 {
134- $ modificationsMapped = array ();
135- foreach ($ modifications as $ modification ) {
136- $ modificationsMapped [] = $ modification ->toArray ();
134+ $ operationsMapped = array ();
135+ foreach ($ operations as $ modification ) {
136+ $ operationsMapped [] = $ modification ->toArray ();
137137 }
138138
139- if (!@ldap_modify_batch ($ this ->getConnectionResource (), $ dn , $ modificationsMapped )) {
139+ if (!@ldap_modify_batch ($ this ->getConnectionResource (), $ dn , $ operationsMapped )) {
140140 throw new UpdateOperationException (sprintf ('Error executing batch modification on "%s": "%s". ' , $ dn , ldap_error ($ this ->getConnectionResource ())));
141141 }
142142 }
You can’t perform that action at this time.
0 commit comments