PHP 8.2 and AcademicPuma/citeproc-php

Created on 22 November 2023, about 1 year ago
Updated 24 November 2023, about 1 year ago

Problem/Motivation

The AcademicPuma package is abandoned and has no support for php 8.2, the author suggests using the seboettg/citeproc-php package. academicpuma/citeproc-php

In the future change to use seboettg/citeproc-php.

Steps to reproduce

1. Install the Bibliography & Citation in apache with php 8.2
2. Insert multiples references with authors.
3. Merge multiples authors.
4. Go to path /bibcite/contributor/%

Proposed resolution

This is a very bad code practice, but it solves the problem.

In files [Info.php, Locale.php and Mapper.php] add the attribute to class. #[\AllowDynamicProperties]

The AllowDynamicProperties class

I would like to make a patch, but I don't know how they are generated.

Previously I used the patch of @greggmarshall

"academicpuma/citeproc-php": {
    "PHP 8.1 compatibility fix": "https://www.drupal.org/files/issues/2022-11-26/cite-php-implode-php81.patch"
}

Error

Deprecated function: Creation of dynamic property AcademicPuma\CiteProc\Info::$title-short is deprecated in AcademicPuma\CiteProc\Info->__construct() (line 55 of vendor/academicpuma/citeproc-php/src/Info.php).

...
🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇪🇸Spain nonodev96

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

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

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024