One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
class FormErrorsSerializer { | |
public function serializeFormErrors(\Symfony\Component\Form\Form $form, $flat_array = false, $add_form_name = false, $glue_keys = '_') | |
{ | |
$errors = array(); | |
$errors['global'] = array(); | |
$errors['fields'] = array(); | |
foreach ($form->getErrors() as $error) { | |
$errors['global'][] = $error->getMessage(); |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
<?php | |
trait ArrayTestCaseTrait | |
{ | |
/** | |
* Asserts that two associative arrays are similar. | |
* | |
* Both arrays must have the same indexes with identical values | |
* without respect to key ordering | |
* |