comparison vendor/zendframework/zend-stdlib/src/SplPriorityQueue.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 7a779792577d
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
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 }