frozensheep / rightmoveADF

PHP library for the Rightmove Real Time Property Datafeed (ADF).
MIT License
17 stars 20 forks source link

More than 10 images throws an error #10

Open PeteDMS opened 2 years ago

PeteDMS commented 2 years ago

https://github.com/frozensheep/rightmoveADF/blob/28f9fdd031a4a8f3200811f9791f5ea355604c9a/examples/sendProperty.php#L152

Seemingly when adding more than 10 images the following error occurs: Frozensheep\Synthesize\Exception\MaxException

  The maximum number of items is "10".

  at vendor/frozensheep/synthesize/src/Type/ObjectArrayObject.php:50
     46▕        public function isValidItem($mixValue){
     47▕                if(is_object($mixValue)){
     48▕                        if($this->hasOption('max')){
     49▕                                if(count($this->mixValue)>=$this->options()->max){
     50▕                                        throw new MaxException($this->options()->max);
     51▕                                         return false;
     52▕                                }
     53▕                        }

The reference above and the docs say this should go to 999?