Required parameter $file follows optional parameter $storage in includes/hackedProject.inc on line 366

Created on 24 October 2022, over 2 years ago
Updated 24 April 2025, 3 days ago

Problem/Motivation

PHP Deprecated: Required parameter $file follows optional parameter $storage in /var/www/html/docroot/sites/all/modules/hacked/includes/hackedProject.inc on line 366

Steps to reproduce

Create a local environment with PHP8.0 enabled

% drush hacked-list-projects --force-rebuild
Rebuilding Hacked! report
PHP Deprecated:  Required parameter $file follows optional parameter $storage in /var/www/html/docroot/sites/all/modules/hacked/includes/hackedProject.inc on line 366

Deprecated: Required parameter $file follows optional parameter $storage in /var/www/html/docroot/sites/all/modules/hacked/includes/hackedProject.inc on line 366

Proposed resolution

Fix the Depreciated code

Remaining tasks

Review the patch

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom the_g_bomb

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024