n0nag0n
d8fe78449c
Fix flight.allow_method_override not disabling method override (GHSA-vr9m-jx6f-hhj6)
...
Assign Request::$allowMethodOverride on the class before any Request is
built, so the constructor does not cache an overridden verb while the
static still defaults to true. When override is disabled and an override
header or _method field is present, recompute the cached request method
so early Flight::request() access cannot keep a spoofed DELETE/PUT/PATCH.
Add regression tests for the Engine start path, early request construction,
_method, and intentional manual method assignment without override input.
1 week ago
n0nag0n
98c9c89893
Align Runway generators with skeleton App\ layout and fix suite gates
...
make:controller now generates App\Controller under app/Controller/, and
ai:generate-instructions writes only AGENTS.md with Twig/SimplePdo
conventions. Clear a stale PHPStan baseline entry and resolve PHPCS
issues so multi-PHP tests/phpstan/phpcs pass cleanly.
2 weeks ago
n0nag0n
53d422001e
feat(ai): generate AGENTS.md in ai:generate-instructions command
...
Also write project AI instructions to AGENTS.md alongside the existing
copilot, cursor, gemini, and windsurf output files.
2 months ago
copilot-swe-agent[bot]
46e457f9c5
Merge master into autoload-rework
2 months ago
fadrian06
770d246e29
Potential fix for pull request finding
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2 months ago
fadrian06
ee9b5f2082
reset v2ClassLoading
2 months ago
fadrian06
8ec68173ce
validate ->setAccesible
2 months ago
fadrian06
47a3702927
refactor LoaderTest
2 months ago
fadrian06
85d2f82f77
autoload reworked
...
- removed autoload-dev.classmap
- normalize Tests/* namespace to tests
- rename tests/server-v2 to tests/server_v2
- remove tests/phpunit_autoload.php
- update tests files namespaces
- update tests/server/index.php and tests/server_v2/index.php to use composer autoloader
- extract tests/server_v2/AuthCheck.php
2 months ago
fadrian06
760ac1a858
composer format
2 months ago
fadrian06
4e8402ece0
Fix pdoexception message in php8.0 in windows
2 months ago
fadrian06
a8de8d3914
Fix testRenderLayout in windows
2 months ago
fadrian06
8b5118b791
Fix another endlines problems with windows
2 months ago
copilot-swe-agent[bot]
76aaf5e274
Fix Windows CI failure in testGetRoutes: replace both \\r\\n and \\n newlines
...
On Windows, PHP_EOL is \\r\\n but the CLI library writes \\n to the
output file. The removeColors() helper converts \\r\\n→\\n, so using
str_replace(PHP_EOL, '') afterwards failed to strip those \\n on
Windows, leaving newlines in the haystack while the needle had none.
Fix: replace both \\r\\n and \\n so all newline variants are stripped
from both needle and haystack before comparison, making the test
platform-independent.
2 months ago
fadrian06
237d567373
fix: symlink(): Permission denied on WINNT
2 months ago
n0nag0n
60bf7921f2
Throw when middleware class is missing or cannot be resolved
...
String middleware classes that do not exist or fail container
resolution are now validated at request time, matching route
handler behavior. Middleware that only implements one phase
(before/after) continues to be skipped for the other phase.
Fixes #696
2 months ago
KnifeLemon
02fe881d27
fix wildcard routes being skipped by fast path method lookup closes #693
...
Co-authored-by: Copilot <copilot@github.com>
4 months ago
n0nag0n
924f231baa
security fixes
4 months ago
fadrian06
ce753b7cd2
implement Tests\Server, ServerV2 and groupcompactsyntax namespaces
5 months ago
fadrian06
08904df138
ignore namespaces phpcs warning
5 months ago
fadrian06
b55540068e
fix almost long lines phpcs warnings
5 months ago
fadrian06
29595ef9e1
composer exec phpcbf -- --standard=PSR2
5 months ago
fadrian06
85c4b38858
apply lsp-intelephense format to tests folder
5 months ago
fadrian06
5a4f13b8d8
fix all tests in windows
5 months ago
Mr Percival
a3f47bc902
Ignore LiMIT when using RETURNING
7 months ago
n0nag0n
dd39d4adad
fixed spacing
8 months ago
n0nag0n
ff17dd591d
Added SimplePdo class to replace PdoWrapper
8 months ago
Arshid
a59829d8fd
Add return type - tests
8 months ago
n0nag0n
888ff46d26
Fixed route and controller commands to accept old configs
8 months ago
n0nag0n
b9818ea27b
ok, so only for php 7.4 and 8...
8 months ago
n0nag0n
9cc9347e2b
Merge branch 'update-ai-commands' of https://github.com/flightphp/core into update-ai-commands
8 months ago
n0nag0n
e73b4e3f92
Removed useless method
8 months ago
n0nag0n
175e9eb656
Merge branch 'master' into update-ai-commands
8 months ago
n0nag0n
009f2f9bad
Fix AI commands to use new runway config syntax
8 months ago
yangzhi-rao
8b047021fe
update route tests
8 months ago
n0nag0n
b174bdbc6f
more changes with upload. Security enhancements. Also got rid of php-watcher
10 months ago
n0nag0n
671fea075c
adjustments for security, 100% coverage and phpcs
10 months ago
KnifeLemon
82daf71d0a
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
10 months ago
KnifeLemon
106955a82e
add multipart parsing for PUT/PATCH/DELETE methods and comprehensive tests
10 months ago
KnifeLemon
ca46fd041d
fix file upload handling to preserve array format for single files
10 months ago
KnifeLemon
f0bd5dda81
fixed multiple file upload errors
10 months ago
n0nag0n
095a46663f
configured performance testing
11 months ago
n0nag0n
c9da0675d9
added accept header negotiations, OPTIONS method Allow header and, better method handling.
11 months ago
n0nag0n
6a2494c698
Merge pull request #663 from flightphp/download-file
...
Adjusting PHPStan Linting and updated download()
11 months ago
n0nag0n
4d9f0f42bd
Added response test and did some sanitizing
11 months ago
Arshid
3884da4bdc
php85
11 months ago
n0nag0n
f0dc1b1adf
Merge pull request #658 from flightphp/router-performance
...
Router performance enhancements
1 year ago
n0nag0n
204ffbb024
Update tests/performance/performance_tests.sh
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 year ago
n0nag0n
8ecb93f2df
router performance enhancements
1 year ago
n0nag0n
c8f39b7a11
improvements with the request class
1 year ago