Skip to content

Commit bbf0585

Browse files
authored
[php] Update Flight to v3 (#9470)
* Update Flight to v3 * Fix plaintext
1 parent 6d5e760 commit bbf0585

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frameworks/PHP/flight/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"mikecao/flight": "^2.0"
3+
"mikecao/flight": "^3.0"
44
}
5-
}
5+
}

frameworks/PHP/flight/index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
// Plaintext test
1414
Flight::route('/plaintext', function() {
1515
Flight::response()
16-
->header('Content-Type', 'text/plain')
17-
->write('Hello, World!')
18-
->send();
16+
->header('Content-Type', 'text/plain');
17+
echo 'Hello, World!';
1918
});
2019

2120
// DB test

0 commit comments

Comments
 (0)