Deprecate singleOrNew(), we use firstOrNew() instead

This commit is contained in:
2024-11-12 21:03:47 +11:00
parent 24144de193
commit 521a9b0679
3 changed files with 3 additions and 13 deletions

View File

@@ -263,7 +263,7 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
case 'software':
Software::unguard();
$o = Software::singleOrNew(['code'=>$this->product,'type'=>Software::SOFTWARE_TOSSER]);
$o = Software::firstOrNew(['code'=>$this->product,'type'=>Software::SOFTWARE_TOSSER]);
Software::reguard();
return $o;