NOW MANAGED ON CODEBERG
Maintenance: Addressed a range of deprecations
Dan Brown9443682ae45c
diff --git a/app/Exports/ZipExports/ZipExportBuilder.php b/app/Exports/ZipExports/ZipExportBuilder.phpindex 9937d1589..1a7d88020 100644--- a/app/Exports/ZipExports/ZipExportBuilder.php+++ b/app/Exports/ZipExports/ZipExportBuilder.php@@ -76,7 +76,7 @@ class ZipExportBuilder$zipFile = tempnam(sys_get_temp_dir(), 'bszip-');$zip = new ZipArchive();- $opened = $zip->open($zipFile, ZipArchive::CREATE);+ $opened = $zip->open($zipFile, ZipArchive::OVERWRITE);if ($opened !== true) {throw new ZipExportException('Failed to create zip file for export.');}diff --git a/composer.lock b/composer.lockindex 70d68f085..54ea99275 100644--- a/composer.lock+++ b/composer.lock@@ -62,16 +62,16 @@},{"name": "aws/aws-sdk-php",- "version": "3.352.5",+ "version": "3.354.0","source": {"type": "git","url": "https://github.com/aws/aws-sdk-php.git",- "reference": "e226dcc96c0a1165d9c8248ec637d1006b883609"+ "reference": "014ce3465277cf78a05e60c04ce04c9893733bf2"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/e226dcc96c0a1165d9c8248ec637d1006b883609",- "reference": "e226dcc96c0a1165d9c8248ec637d1006b883609",+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/014ce3465277cf78a05e60c04ce04c9893733bf2",+ "reference": "014ce3465277cf78a05e60c04ce04c9893733bf2","shasum": ""},"require": {@@ -153,9 +153,9 @@"support": {"forum": "https://github.com/aws/aws-sdk-php/discussions","issues": "https://github.com/aws/aws-sdk-php/issues",- "source": "https://github.com/aws/aws-sdk-php/tree/3.352.5"+ "source": "https://github.com/aws/aws-sdk-php/tree/3.354.0"},- "time": "2025-08-08T18:09:38+00:00"+ "time": "2025-08-14T18:10:08+00:00"},{"name": "bacon/bacon-qr-code",@@ -1739,16 +1739,16 @@},{"name": "laravel/framework",- "version": "v11.45.1",+ "version": "v11.45.2","source": {"type": "git","url": "https://github.com/laravel/framework.git",- "reference": "b09ba32795b8e71df10856a2694706663984a239"+ "reference": "d134bf11e2208c0c5bd488cf19e612ca176b820a"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/framework/zipball/b09ba32795b8e71df10856a2694706663984a239",- "reference": "b09ba32795b8e71df10856a2694706663984a239",+ "url": "https://api.github.com/repos/laravel/framework/zipball/d134bf11e2208c0c5bd488cf19e612ca176b820a",+ "reference": "d134bf11e2208c0c5bd488cf19e612ca176b820a","shasum": ""},"require": {@@ -1856,7 +1856,7 @@"league/flysystem-read-only": "^3.25.1","league/flysystem-sftp-v3": "^3.25.1","mockery/mockery": "^1.6.10",- "orchestra/testbench-core": "^9.13.2",+ "orchestra/testbench-core": "^9.16.0","pda/pheanstalk": "^5.0.6","php-http/discovery": "^1.15","phpstan/phpstan": "^2.0",@@ -1950,7 +1950,7 @@"issues": "https://github.com/laravel/framework/issues","source": "https://github.com/laravel/framework"},- "time": "2025-06-03T14:01:40+00:00"+ "time": "2025-08-13T20:28:00+00:00"},{"name": "laravel/prompts",@@ -3540,16 +3540,16 @@},{"name": "nikic/php-parser",- "version": "v5.6.0",+ "version": "v5.6.1","source": {"type": "git","url": "https://github.com/nikic/PHP-Parser.git",- "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56"+ "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/221b0d0fdf1369c71047ad1d18bb5880017bbc56",- "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56",+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2",+ "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2","shasum": ""},"require": {@@ -3568,7 +3568,7 @@"type": "library","extra": {"branch-alias": {- "dev-master": "5.0-dev"+ "dev-master": "5.x-dev"}},"autoload": {@@ -3592,9 +3592,9 @@],"support": {"issues": "https://github.com/nikic/PHP-Parser/issues",- "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.0"+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1"},- "time": "2025-07-27T20:03:57+00:00"+ "time": "2025-08-13T20:13:15+00:00"},{"name": "nunomaduro/termwind",@@ -9024,16 +9024,16 @@},{"name": "phpunit/phpunit",- "version": "11.5.31",+ "version": "11.5.32","source": {"type": "git","url": "https://github.com/sebastianbergmann/phpunit.git",- "reference": "fc44414e0779e94640663b809557b0b599548260"+ "reference": "101e132dcf9e74a1eb3a309b4f686114ae8f7f36"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc44414e0779e94640663b809557b0b599548260",- "reference": "fc44414e0779e94640663b809557b0b599548260",+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/101e132dcf9e74a1eb3a309b4f686114ae8f7f36",+ "reference": "101e132dcf9e74a1eb3a309b4f686114ae8f7f36","shasum": ""},"require": {@@ -9105,7 +9105,7 @@"support": {"issues": "https://github.com/sebastianbergmann/phpunit/issues","security": "https://github.com/sebastianbergmann/phpunit/security/policy",- "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.31"+ "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.32"},"funding": [{@@ -9129,7 +9129,7 @@"type": "tidelift"}],- "time": "2025-08-11T05:27:39+00:00"+ "time": "2025-08-12T07:32:49+00:00"},{"name": "sebastian/cli-parser",@@ -9908,23 +9908,23 @@},{"name": "sebastian/recursion-context",- "version": "6.0.2",+ "version": "6.0.3","source": {"type": "git","url": "https://github.com/sebastianbergmann/recursion-context.git",- "reference": "694d156164372abbd149a4b85ccda2e4670c0e16"+ "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16",- "reference": "694d156164372abbd149a4b85ccda2e4670c0e16",+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc",+ "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc","shasum": ""},"require": {"php": ">=8.2"},"require-dev": {- "phpunit/phpunit": "^11.0"+ "phpunit/phpunit": "^11.3"},"type": "library","extra": {@@ -9960,15 +9960,27 @@"support": {"issues": "https://github.com/sebastianbergmann/recursion-context/issues","security": "https://github.com/sebastianbergmann/recursion-context/security/policy",- "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2"+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.3"},"funding": [{"url": "https://github.com/sebastianbergmann","type": "github"+ },+ {+ "url": "https://liberapay.com/sebastianbergmann",+ "type": "liberapay"+ },+ {+ "url": "https://thanks.dev/u/gh/sebastianbergmann",+ "type": "thanks_dev"+ },+ {+ "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context",+ "type": "tidelift"}],- "time": "2024-07-03T05:10:34+00:00"+ "time": "2025-08-13T04:42:22+00:00"},{"name": "sebastian/type",diff --git a/database/factories/Entities/Models/PageFactory.php b/database/factories/Entities/Models/PageFactory.phpindex 319d97880..811570095 100644--- a/database/factories/Entities/Models/PageFactory.php+++ b/database/factories/Entities/Models/PageFactory.php@@ -2,6 +2,7 @@namespace Database\Factories\Entities\Models;+use BookStack\Entities\Tools\PageEditorType;use Illuminate\Database\Eloquent\Factories\Factory;use Illuminate\Support\Str;@@ -29,6 +30,7 @@ class PageFactory extends Factory'html' => $html,'text' => strip_tags($html),'revision_count' => 1,+ 'editor' => 'wysiwyg',];}}diff --git a/tests/Exports/ZipImportTest.php b/tests/Exports/ZipImportTest.phpindex ad0e6b241..54e589aa3 100644--- a/tests/Exports/ZipImportTest.php+++ b/tests/Exports/ZipImportTest.php@@ -76,7 +76,7 @@ class ZipImportTest extends TestCase{$zipFile = tempnam(sys_get_temp_dir(), 'bstest-');$zip = new ZipArchive();- $zip->open($zipFile, ZipArchive::CREATE);+ $zip->open($zipFile, ZipArchive::OVERWRITE);$zip->addFromString('beans', 'cat');$zip->close();diff --git a/tests/Exports/ZipTestHelper.php b/tests/Exports/ZipTestHelper.phpindex 50517a87d..c5a7235a0 100644--- a/tests/Exports/ZipTestHelper.php+++ b/tests/Exports/ZipTestHelper.php@@ -46,7 +46,7 @@ class ZipTestHelper$zipFile = tempnam(sys_get_temp_dir(), 'bstest-');$zip = new ZipArchive();- $zip->open($zipFile, ZipArchive::CREATE);+ $zip->open($zipFile, ZipArchive::OVERWRITE);$zip->addFromString('data.json', json_encode($data));foreach ($files as $name => $file) {