PluginProbe
Packeta / 2.3.2
Packeta v2.3.2
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
← All changes | src/Packetery/Core/Validator/Address.php +1 -4 1.5.3 → 2.3.2 View file →
@@ -16,9 +16,8 @@
16 16 *
17 17 * @package Packetery\Validator
18 18 */
19 19 class Address {
20 -
21 20 /**
22 21 * Validates data needed to instantiate.
23 22 *
24 23 * @param Entity\Address $address Address entity.
@@ -25,9 +24,7 @@
25 24 *
26 25 * @return bool
27 26 */
28 27 public function validate( Entity\Address $address ): bool {
29 - return ( $address->getStreet() && $address->getCity() && $address->getZip() );
28 + return ( $address->getStreet() !== null && $address->getCity() !== null && $address->getZip() !== null );
30 29 }
31 -
32 -
33 30 }