Skip to content

Conversation

@miceno
Copy link
Owner

@miceno miceno commented Dec 21, 2025

No description provided.

gregstoll and others added 24 commits June 26, 2023 18:03
mark GalleryRemoteConstants functions static
Adapt to changed behaviour in PostgreSQL type cast
ADOdb >= 5.22.6 is required for php 8.2. The current ADOdb version in
Gallery 2 is 5.22.5. This merge imports ADOdb 5.22.7
MariaDB is also supported and used by docker-compose, but isn't
mentioned in the README.html.
Add client_max_body_size to nginx docker config
Changes from parent repository
@miceno miceno self-assigned this Dec 21, 2025
@miceno miceno requested a review from Copilot December 21, 2025 19:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the main AHPN branch with changes from the upstream main branch, primarily addressing PHP 8.2 compatibility issues related to deprecated dynamic properties and updating the ADOdb database library.

Key changes include:

  • Declaring dynamic properties explicitly across test classes to comply with PHP 8.2 requirements
  • Updating ADOdb library from v5.22.5 to v5.22.7 with PHP 8.2 compatibility fixes
  • Minor string interpolation syntax updates for consistency

Reviewed changes

Copilot reviewed 235 out of 235 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Test class files (watermark, useralbum, etc.) Added explicit public property declarations to prevent PHP 8.2 deprecation warnings
ADOdb library files Updated to v5.22.7 with bug fixes and PHP 8.2 compatibility improvements
Core module classes Added dynamic property declarations for PHP 8.2 compatibility
String interpolation updates Changed "${var}" to "{$var}" syntax for consistency
PostgreSQL storage class Added null check in convertBitsToInt() and updated INSERT statement generation
Comments suppressed due to low confidence (13)

modules/rating/test/phpunit/RatingCallbacksTest.class:1

  • Corrected spelling of 'php' (missing 'p' character).
    modules/ffmpeg/test/phpunit/FfmpegToolkitTest.class:1
  • Missing 'in' between 'properties' and 'php'.
    modules/ffmpeg/test/phpunit/AdminFfmpegControllerTest.class:1
  • Type declaration array is inconsistent with other property declarations in the codebase which don't use type hints. Remove the type hint for consistency.
    modules/core/test/phpunit/OptimizeDatabaseTaskTest.class:1
  • Corrected spelling of 'dynamic' (typo: 'dynanic').
    modules/core/test/phpunit/EventLogHelperTest.class:1
  • Corrected spelling of 'php' (missing 'p' character).
    modules/core/test/phpunit/UtilitiesTest.class:1
  • Corrected spelling of 'deprecated' (typo: 'deprecatced').
    modules/core/test/phpunit/ItemAddControllerTest.class:1
  • Corrected spelling of 'dynamic' (typo: 'dynamci').
    modules/core/test/phpunit/CreateThumbnailOptionTest.class:1
  • Remove trailing whitespace on this line.
    modules/core/test/phpunit/AlbumTest.class:1
  • The class declaration was reformatted by adding a space before the opening brace. While this is a valid fix, ensure it's consistent with the project's coding standards.
    modules/core/classes/GalleryDynamicAlbum.class:1
  • The comment should use 'deprecated' instead of 'deprecate' for consistency with other similar comments.
    modules/core/test/phpunit/AdminCoreControllerTest.class:1
  • Inconsistent indentation - this comment uses spaces while surrounding code uses tabs. Should use tabs for consistency.
    lib/pear/HTMLSax3.php:1
  • Type declaration array is inconsistent with the rest of the codebase which uses var declarations without type hints. For consistency, this should be var $attrs; instead.
    lib/adodb/perf/perf-oci8.inc.php:1
  • The parent class name changed from ADODB_perf to adodb_perf. Verify this is the correct class name and matches the actual parent class definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants