mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Merge pull request #512 from creative-commoners/pulls/3.0/remove-depr
API Remove deprecated code
This commit is contained in:
commit
e41940cefd
@ -34,9 +34,6 @@ class SubsiteState implements Resettable
|
|||||||
*/
|
*/
|
||||||
public function setSubsiteId(?int $id): static
|
public function setSubsiteId(?int $id): static
|
||||||
{
|
{
|
||||||
if (!ctype_digit((string) $id) && !is_null($id)) {
|
|
||||||
Deprecation::notice('2.8.0', 'Passing multiple IDs is deprecated, only pass a single ID instead.');
|
|
||||||
}
|
|
||||||
if (is_null($this->originalSubsiteId)) {
|
if (is_null($this->originalSubsiteId)) {
|
||||||
$this->originalSubsiteId = (int) $id;
|
$this->originalSubsiteId = (int) $id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user