comparison vendor/zendframework/zend-stdlib/src/SplPriorityQueue.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents 5311817fb629
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
82 * @param string $data 82 * @param string $data
83 * @return void 83 * @return void
84 */ 84 */
85 public function unserialize($data) 85 public function unserialize($data)
86 { 86 {
87 $this->serial = PHP_INT_MAX;
87 foreach (unserialize($data) as $item) { 88 foreach (unserialize($data) as $item) {
89 $this->serial--;
88 $this->insert($item['data'], $item['priority']); 90 $this->insert($item['data'], $item['priority']);
89 } 91 }
90 } 92 }
91 } 93 }