Commit Graph

12695 Commits (e7ba43e2e1ea56243ecf2d4dfffce2d64f2b2317)
 

Author SHA1 Message Date
Your Name e7ba43e2e1 fix: add missing use imports to resolve phpstan class.notFound errors
Add missing imports for Log, Cache, DB, FollowerService, StatusService,
LikeService, ReblogService, UserFilterService, AdminProfile, OauthClient,
and fix StatusTimelineTransformer reference (class didn't exist, replaced
with StatusTransformer).
4 weeks ago
Shlee d048ce74d6
Merge pull request #6841 from pixelfed/shleeable-patch-1
Update CHANGELOG.md
4 weeks ago
Shlee eeda06cee8
Update CHANGELOG.md
Updated changelog with recent refactor details and fixes.
4 weeks ago
Shlee 636cc67a55
Merge pull request #6840 from pixelfed/fix/missing-feedunfollowpipeline-import
fix: add missing FeedUnfollowPipeline import
4 weeks ago
Shlee 2289c87981
Merge pull request #6839 from pixelfed/refactor/phpstan-config-best-practices
refactor: update phpstan.neon with Larastan 3.x best practices
4 weeks ago
Shlee d8a122a9cd
Update phpstan.neon 4 weeks ago
Your Name 58efefb878 fix: add missing FeedUnfollowPipeline import
Add missing use statement for FeedUnfollowPipeline in PrivacySettings
and FollowerObserver. These caused PHPStan internal errors blocking
full analysis.
4 weeks ago
Your Name 890dc55342 refactor: update phpstan.neon with Larastan 3.x best practices
- Add databaseMigrationsPath for model property type inference
- Add configDirectories for config key validation
- Add parseModelCastsMethod to read casts() methods
- Add enableMigrationCache for faster repeated analysis
- Ignore intentional 'new static()' pattern (Autolink has subclass)
- Remove stale baseline reference and outdated comments
4 weeks ago
Shlee fc3dd0db4e
Merge pull request #6838 from pixelfed/shleeable-patch-2
Delete phpstan-baseline.neon
1 month ago
Shlee afbbd9ea01
Update phpstan.neon 1 month ago
Shlee 412ac5fd97
Delete phpstan-baseline.neon 1 month ago
Shlee ab2d06c082
Merge pull request #6837 from pixelfed/shleeable-patch-1
Update docker-tag.yml
1 month ago
Shlee 28a56d047e
Update docker-push.yml 1 month ago
Shlee de656d12dc
Update docker-tag.yml 1 month ago
Shlee 31aedf9464
Merge pull request #6836 from pixelfed/shleeable-patch-1
Update CHANGELOG.md
1 month ago
Shlee 3170c82a76
Update CHANGELOG.md 1 month ago
Shlee 572047280f
Merge pull request #6830 from pixelfed/refactor/modern-bootstrap-app
refactor: migrate to modern Laravel 13+ bootstrap/app.php
1 month ago
Shlee e3279b4286
Delete tests/database.sqlite 1 month ago
Shlee ad899f8917
Merge pull request #6834 from pixelfed/refactor/facade-fqcn-imports
refactor: replace short facade aliases with fully-qualified imports
1 month ago
Shlee e8a13300e4
Delete tests/database.sqlite 1 month ago
Shlee 899e360b48
Update Extractor.php 1 month ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
1 month ago
Shlee 71df2a20fb
Merge pull request #6833 from pixelfed/refactor/remove-thin-middleware-wrappers
refactor: remove thin middleware wrappers, use framework classes directly
1 month ago
Your Name ee7d7124d0 refactor: remove thin middleware wrappers, use framework classes directly
Delete 4 middleware wrapper classes that added no custom logic:
- EncryptCookies (empty $except)
- TrimStrings ($except matches framework default)
- VerifyCsrfToken (exceptions moved to validateCsrfTokens() in bootstrap)
- TrustProxies (headers matched framework default)

CSRF exceptions (/api/v1/*, oauth/token) are now configured via
$middleware->validateCsrfTokens(except: [...]) in bootstrap/app.php.

All 107 tests pass.
1 month ago
Shlee 469aab62af
Merge pull request #6832 from pixelfed/refactor/remove-config-app-aliases
refactor: remove redundant aliases from config/app.php
1 month ago
Your Name 5693b1581f refactor: remove redundant aliases from config/app.php
Remove auto-discovered package aliases (Purify, FFMpeg, Captcha) and
the unused Eloquent alias. These are registered automatically via
package auto-discovery.

Framework facade aliases must remain until all 344+ short-import
usages (e.g. 'use Cache;') are migrated to fully-qualified imports.
1 month ago
Daniel Supernault 443f29acc9
Update AccountService.php 1 month ago
Your Name 8e41f6fdf8 refactor: migrate to modern bootstrap/app.php architecture
Consolidate the legacy Laravel 5-era kernel/handler architecture into
the modern Application::configure() pattern introduced in Laravel 11:

- HTTP middleware stack → bootstrap/app.php withMiddleware()
- Console schedule → bootstrap/app.php withSchedule()
- Exception handling → bootstrap/app.php withExceptions()
- Route registration → bootstrap/app.php withRouting()
- Service providers → bootstrap/providers.php

Deleted files:
- app/Http/Kernel.php
- app/Console/Kernel.php
- app/Exceptions/Handler.php
- app/Providers/RouteServiceProvider.php
- app/Providers/BroadcastServiceProvider.php

Removed framework providers from config/app.php (auto-registered by
Application::configure). Package providers use auto-discovery.

All 107 tests pass. Schedule, routes, and middleware verified working.
1 month ago
Shlee 6ae40d7266
Merge pull request #6829 from pixelfed/refactor/remove-deprecated-helpers
refactor: replace deprecated laravel/helpers with native alternatives
1 month ago
Shlee 9d6bf91993
Merge pull request #6827 from pixelfed/fix/docker-bootstrap-cache-mount
fix: remove bootstrap/cache bind mount from docker-compose
1 month ago
Your Name f5d166a933 fix: remove bootstrap/cache bind mount from docker-compose
The bootstrap/cache volume mount causes stale service provider references
to persist across rebuilds. When a package is removed, the host's cached
packages.php/services.php still reference the old provider, causing
'Class not found' errors at container startup.

The AUTORUN_LARAVEL_*_CACHE env vars already handle cache regeneration
on each container start, making the bind mount unnecessary.
1 month ago
Shlee 559db5d73e
Merge pull request #6825 from pixelfed/fix/blade-test-str-random
fix: replace deprecated str_ helpers in Blade templates and tests
1 month ago
Your Name 30db57448f fix: replace str_random/str_limit/str_slug in Blade templates and tests
These deprecated helpers will throw 'undefined function' errors at
runtime since laravel/helpers was removed. Replace with Str::random(),
Str::limit(), and Str::slug() respectively.
1 month ago
Daniel Supernault b761107c71
Update ContextMenu, restore Edit button 1 month ago
Shlee 00328845c9
Merge pull request #6822 from pixelfed/refactor/replace-remaining-str-helpers
refactor: replace str_limit() with Str::limit()
1 month ago
Your Name faa216b329 refactor: replace str_limit() with Str::limit()
Replace remaining 3 deprecated str_limit() calls with Str::limit().
No other deprecated str_* helpers remain in the codebase.
1 month ago
Shlee 35595fcc70
Merge pull request #6821 from pixelfed/refactor/replace-str-random
refactor: replace deprecated str_random() with Str::random()
1 month ago
Your Name 98267eb26f refactor: replace deprecated str_random() with Str::random()
str_random() is a deprecated helper from laravel/helpers that was
missed in the initial helpers removal. Replace all 18 call sites
with the modern Str::random() equivalent.
1 month ago
Your Name 1bb05fafa9 refactor: replace deprecated laravel/helpers with native alternatives
Replace all deprecated helper function calls:
- str_slug() → Str::slug()
- starts_with() → str_starts_with()
- ends_with() → str_ends_with()
- array_first() → Arr::first()
- array_last() → Arr::last()
- array_flatten() → Arr::flatten()

Remove laravel/helpers package from composer.json as it is no longer
needed and will not be maintained for Laravel 13.
1 month ago
Shlee 21ec7b2b29
Merge pull request #6818 from pixelfed/refactor/fix-pdo-constant-deprecation
fix: resolve PDO::MYSQL_ATTR_SSL_CA deprecation on PHP 8.5
1 month ago
Shlee 31330d46fa
Merge pull request #6817 from pixelfed/refactor/event-service-provider-syntax
refactor: use ::class syntax in EventServiceProvider
1 month ago
Shlee d77eaf1e6c
Merge pull request #6816 from pixelfed/refactor/remove-deprecated-helpers
refactor: replace deprecated laravel/helpers with native alternatives
1 month ago
Shlee 877c2d9e25
Merge pull request #6820 from pixelfed/shleeable-patch-1
Update CHANGELOG.md
1 month ago
Shlee 3bf3e12748
Update CHANGELOG.md 1 month ago
Your Name 5041e18050 fix: resolve PDO::MYSQL_ATTR_SSL_CA deprecation on PHP 8.5
Use Pdo\Mysql::ATTR_SSL_CA when available (PHP 8.5+), falling back to
the legacy PDO::MYSQL_ATTR_SSL_CA constant for older PHP versions.
This eliminates the deprecation warning during Docker builds and runtime.
1 month ago
Your Name 741bc995ca refactor: use ::class syntax in EventServiceProvider
Replace string-based event class references with proper ::class imports
for better IDE support and static analysis compatibility.
1 month ago
Your Name edb4368b08 refactor: replace deprecated laravel/helpers with native alternatives
Replace all deprecated helper function calls:
- str_slug() → Str::slug()
- starts_with() → str_starts_with()
- ends_with() → str_ends_with()
- array_first() → Arr::first()
- array_last() → Arr::last()
- array_flatten() → Arr::flatten()

Remove laravel/helpers package from composer.json as it is no longer
needed and will not be maintained for Laravel 13.
1 month ago
Shlee b279638218
Merge pull request #6814 from pixelfed/refactor/routes-class-syntax
refactor: convert string-based routes to ::class array syntax
1 month ago
Your Name 28927f6f66 refactor: convert string-based routes to ::class array syntax
Replace all 'Controller@method' string references with
[Controller::class, 'method'] array syntax across all route files.
Remove the $namespace property and ->namespace() calls from
RouteServiceProvider.

This is required for Laravel 13 compatibility where string-based
controller routing and automatic namespace prefixing will be removed.

742 route references converted across 5 route files.
1 month ago
Daniel Supernault 8f1e475407
Fix typo 1 month ago