Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address deprecations for PHP 8.4 #5358

Open
58 tasks
ssddanbrown opened this issue Dec 11, 2024 · 0 comments
Open
58 tasks

Address deprecations for PHP 8.4 #5358

ssddanbrown opened this issue Dec 11, 2024 · 0 comments

Comments

@ssddanbrown
Copy link
Member

ssddanbrown commented Dec 11, 2024

We're in a bit of a tricky spot in regards to PHP 8.4.
While things generally work, there are many deprecations to handle, which may show to users either on the CLI (including composer install).

There's many of these in Laravel though, and Laravel 10 is not getting any specific PHP8.4 support, so we're in an akward place right now.
We'll probably update to Laravel 11 more swift than our usual stance, so quite early in the new year, which will be dropping PHP 8.1 support, so need to get ready for that.

Some work external of that to be done also though in our own codebase and some libraries.

BookStack

Access
  • BookStack\Access\Ldap::bind(): Implicitly marking parameter $bindPassword as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/Ldap.php on line 102
  • BookStack\Access\Ldap::bind(): Implicitly marking parameter $bindRdn as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/Ldap.php on line 102
  • BookStack\Access\Ldap::read(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/Ldap.php on line 69
  • BookStack\Access\Ldap::searchAndGetEntries(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/Ldap.php on line 90
  • BookStack\Access\Ldap::search(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/Ldap.php on line 57
  • BookStack\Access\SocialDriverManager::addSocialDriver(): Implicitly marking parameter $configureForRedirect as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Access/SocialDriverManager.php on line 91
Entities
  • BookStack\Entities\Controllers\BookController::create(): Implicitly marking parameter $shelfSlug as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Controllers/BookController.php on line 73
  • BookStack\Entities\Controllers\BookController::store(): Implicitly marking parameter $shelfSlug as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Controllers/BookController.php on line 96
  • BookStack\Entities\Controllers\PageController::createAsGuest(): Implicitly marking parameter $chapterSlug as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Controllers/PageController.php on line 72
  • BookStack\Entities\Controllers\PageController::create(): Implicitly marking parameter $chapterSlug as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Controllers/PageController.php on line 44
  • BookStack\Entities\Queries\QueryPopular::run(): Implicitly marking parameter $filterModels as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Queries/QueryPopular.php on line 21
  • BookStack\Entities\Repos\RevisionRepo::storeNewForPage(): Implicitly marking parameter $summary as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Entities/Repos/RevisionRepo.php on line 49
Theming
  • BookStack\Theming\ThemeService::addSocialDriver(): Implicitly marking parameter $configureForRedirect as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Theming/ThemeService.php on line 87
Uploads
  • BookStack\Uploads\ImageRepo::destroyImage(): Implicitly marking parameter $image as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 187
  • BookStack\Uploads\ImageRepo::getPaginatedByType(): Implicitly marking parameter $search as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 48
  • BookStack\Uploads\ImageRepo::getPaginatedByType(): Implicitly marking parameter $uploadedTo as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 48
  • BookStack\Uploads\ImageRepo::getPaginatedByType(): Implicitly marking parameter $whereClause as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 48
  • BookStack\Uploads\ImageRepo::saveNew(): Implicitly marking parameter $resizeHeight as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 112
  • BookStack\Uploads\ImageRepo::saveNew(): Implicitly marking parameter $resizeWidth as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageRepo.php on line 112
  • BookStack\Uploads\ImageService::saveNewFromUpload(): Implicitly marking parameter $resizeHeight as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageService.php on line 30
  • BookStack\Uploads\ImageService::saveNewFromUpload(): Implicitly marking parameter $resizeWidth as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Uploads/ImageService.php on line 30
Users
  • BookStack\Users\Controllers\UserApiController::rules(): Implicitly marking parameter $userId as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Users/Controllers/UserApiController.php on line 36
Utils
  • BookStack\Util\SsrUrlValidator::__construct(): Implicitly marking parameter $config as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/app/Util/SsrUrlValidator.php on line 11

Libraries/Dependacies

It's liklely many of these are already addressed, but we're just stuck or using old versions, and therefore could be solved when it comes to upgrading laravel anyway.

Carbon
  • Carbon\AbstractTranslator::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php on line 81
  • Carbon\CarbonPeriod::calculateEnd(): Implicitly marking parameter $rounding as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php on line 1902
  • Carbon\CarbonPeriod::getEndDate(): Implicitly marking parameter $rounding as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php on line 1034
  • Carbon\CarbonPeriod::getStartDate(): Implicitly marking parameter $rounding as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php on line 1020
  • Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158
  • Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172
  • Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188
  • Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230
  • Carbon\Traits\Date::getDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1394
  • Carbon\Traits\Date::setDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1412
  • Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1481
  • Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 447
  • Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 203
Dompdf
  • Dompdf\FrameDecorator\AbstractFrameDecorator::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php on line 900
  • Dompdf\FrameReflower\AbstractFrameReflower::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/AbstractFrameReflower.php on line 297
  • Dompdf\FrameReflower\Block::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/Block.php on line 781
  • Dompdf\FrameReflower\Inline::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/Inline.php on line 77
  • Dompdf\FrameReflower\ListBullet::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/ListBullet.php on line 32
  • Dompdf\FrameReflower\Page::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/Page.php on line 94
  • Dompdf\FrameReflower\Text::reflow(): Implicitly marking parameter $block as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/FrameReflower/Text.php on line 384
  • Dompdf\Helpers::unichr(): Implicitly marking parameter $encoding as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/Helpers.php on line 681
  • Dompdf\Helpers::uniord(): Implicitly marking parameter $encoding as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/Helpers.php on line 605
  • Dompdf\Options::__construct(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/dompdf/dompdf/src/Options.php on line 333
Snappy
  • Knp\Snappy\AbstractGenerator::__construct(): Implicitly marking parameter $env as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php on line 68
  • Knp\Snappy\Pdf::__construct(): Implicitly marking parameter $env as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/Pdf.php on line 21
League/Oauth2
  • League\OAuth2\Client\Provider\AbstractProvider::authorize(): Implicitly marking parameter $redirectHandler as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 496
OneLogin/Saml2
  • OneLogin\Saml2\Auth::__construct(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/onelogin/php-saml/src/Saml2/Auth.php on line 174
  • OneLogin\Saml2\Settings::__construct(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/onelogin/php-saml/src/Saml2/Settings.php on line 123
  • OneLogin\Saml2\Utils::query(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/onelogin/php-saml/src/Saml2/Utils.php on line 955
SocialiteProviders
  • SocialiteProviders\Okta\Provider::getLogoutUrl(): Implicitly marking parameter $redirectUri as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/socialiteproviders/okta/Provider.php on line 176
  • SocialiteProviders\Okta\Provider::getLogoutUrl(): Implicitly marking parameter $state as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/socialiteproviders/okta/Provider.php on line 176
Ssddanbrown
  • Ssddanbrown\AssertHtml\Constraints\PageConstraint::fail(): Implicitly marking parameter $comparisonFailure as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/ssddanbrown/asserthtml/src/Constraints/PageConstraint.php on line 54
  • Ssddanbrown\AssertHtml\HtmlTest::assertLinkExists(): Implicitly marking parameter $text as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/ssddanbrown/asserthtml/src/HtmlTest.php on line 73
  • Ssddanbrown\AssertHtml\HtmlTest::assertLinkNotExists(): Implicitly marking parameter $text as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/ssddanbrown/asserthtml/src/HtmlTest.php on line 81
  • Ssddanbrown\HtmlDiff\WordSplitter::findBlocks(): Implicitly marking parameter $blockExpressions as nullable is deprecated, the explicit nullable type must be used instead in /home/dan/web/bookstack/vendor/ssddanbrown/htmldiff/src/WordSplitter.php on line 205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant