Skip to content

Commit 0c2f579

Browse files
committed
Resolve required-after-optional param deprecations
Just setting to `null` for now to get past the errors. This isn’t the time to refactor.
1 parent 685333c commit 0c2f579

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Uploadable/UploadableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function removeFile($filePath)
467467
* @throws \Gedmo\Exception\UploadableNoTmpDirException
468468
* @throws \Gedmo\Exception\UploadableCantWriteException
469469
*/
470-
public function moveFile(FileInfoInterface $fileInfo, $path, $filenameGeneratorClass = false, $overwrite = false, $appendNumber = false, $object)
470+
public function moveFile(FileInfoInterface $fileInfo, $path, $filenameGeneratorClass = false, $overwrite = false, $appendNumber = false, $object = null)
471471
{
472472
if ($fileInfo->getError() > 0) {
473473
switch ($fileInfo->getError()) {

tests/Gedmo/Sluggable/Fixture/Issue939/SluggableListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct()
1818
$this->setUrlizer([$this, 'urlizer']);
1919
}
2020

21-
public function transliterator($slug, $separator = '-', $object)
21+
public function transliterator($slug, $separator = '-', $object = null)
2222
{
2323
if ($object instanceof Article) {
2424
// custom transliteration here
@@ -31,7 +31,7 @@ public function transliterator($slug, $separator = '-', $object)
3131
);
3232
}
3333

34-
public function urlizer($slug, $separator = '-', $object)
34+
public function urlizer($slug, $separator = '-', $object = null)
3535
{
3636
if ($object instanceof Article) {
3737
// custom urlization here

0 commit comments

Comments
 (0)