Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Required does not work, when array is empty #167

Merged
merged 5 commits into from
Dec 13, 2018
Merged

Required does not work, when array is empty #167

merged 5 commits into from
Dec 13, 2018

Commits on May 17, 2018

  1. Required does not work, when array is empty

    The first problem is, that hasValue always returns true, when a value is set, even, if the value is an empty array. So the first validation for the required filter will be skipped. The second problem is, that the isRequired is called within the foreach loop. But if the value is an empty array, the loop will never start, so isRequired will never triggered and the method will return the defaultValue true.
    eweso authored May 17, 2018
    Configuration menu
    Copy the full SHA
    5a0859e View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2018

  1. Removed whitespace on line 86 and 93

    To pass test "continuous-integration/travis-ci/pr"
    eweso authored Jun 4, 2018
    Configuration menu
    Copy the full SHA
    968b33b View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2018

  1. Update ArrayInputTest.php

    eweso authored Jul 12, 2018
    Configuration menu
    Copy the full SHA
    b0717ce View commit details
    Browse the repository at this point in the history
  2. Update ArrayInputTest.php

    eweso authored Jul 12, 2018
    Configuration menu
    Copy the full SHA
    47fc580 View commit details
    Browse the repository at this point in the history
  3. Update ArrayInputTest.php

    eweso authored Jul 12, 2018
    Configuration menu
    Copy the full SHA
    0812223 View commit details
    Browse the repository at this point in the history