Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite XHP guide for namespace support + xhp-lib v4 #901

Merged
merged 32 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
79879d8
--add-xhp-children-declaration-method and --remove-xhp-child-declarat…
jjergus Aug 3, 2020
55f43be
--demangle-xhp-class-names
jjergus Aug 3, 2020
28a2180
--xhp-class-modifier
jjergus Aug 3, 2020
e2aac90
.hhconfig
jjergus Aug 3, 2020
14c6aff
composer require xhp-lib ^4.0.0rc1
jjergus Aug 3, 2020
37f3881
migrate src/site/xhp
jjergus Aug 4, 2020
2f4087e
fix APCCachedRenderable double rendering
jjergus Aug 4, 2020
deb873a
convert examples
jjergus Aug 4, 2020
29d0c97
remove deleted example file from guide text
jjergus Aug 4, 2020
2d6d465
explicit toStringAsync in examples
jjergus Aug 4, 2020
c337317
more example fixes
jjergus Aug 4, 2020
bbcff86
update .example.hhvm.out files
jjergus Aug 4, 2020
31f1750
fix legit lint errors
jjergus Aug 4, 2020
ab3efcf
static is a keyword
jjergus Aug 4, 2020
c47eae1
split long lines
jjergus Aug 4, 2020
d4d7050
update hhast
jjergus Aug 5, 2020
c9db567
git rm 01-introduction.md
jjergus Aug 5, 2020
50e43dd
git mv 04-some-basics.md 01-introduction.md
jjergus Aug 5, 2020
0afe662
rewrite XHP guides for namespace support (xhp-lib v4)
jjergus Aug 5, 2020
704ebf1
fixes from reviewers
jjergus Aug 6, 2020
9bd113f
composer update again
jjergus Sep 2, 2020
cd26514
pull in #909
lexidor Aug 28, 2020
9041146
bump to HHVM 4.73.0
jjergus Sep 2, 2020
6abfd29
a_post.php missing use type
jjergus Sep 2, 2020
37a9e20
use dev-master usox/hackttp
jjergus Sep 2, 2020
0c7e715
more example fixes
jjergus Sep 2, 2020
6e193f8
rewrite attribute transfer section to use ...splat
jjergus Sep 2, 2020
71be5bf
fixes from reviewers in 13-methods.md
jjergus Sep 2, 2020
29dfbab
update setup instructions
jjergus Sep 2, 2020
009e69e
lexidor fix
jjergus Sep 2, 2020
f7a77af
update to xhp-lib 4.0.0
jjergus Sep 3, 2020
002d2b1
link to blog
jjergus Sep 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .deploy/built-site.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Creates a docker image with a built copy of the site. Not repo-auth.
# Useful as a scratch/testing area.
FROM hhvm/hhvm:4.68-latest
FROM hhvm/hhvm:4.73-latest
ARG DOCKER_BUILD_ENV=prod
ENV TZ UTC
ENV DEBIAN_FRONTEND noninteractive
Expand Down
2 changes: 1 addition & 1 deletion .deploy/prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hhvm/hhvm-proxygen:4.68-latest
FROM hhvm/hhvm-proxygen:4.73-latest

ADD hhvm.prod.ini /etc/hhvm/site.ini
ADD hhvm.hhbc /var/www/hhvm.hhbc
Expand Down
4 changes: 3 additions & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ disallow_elvis_space=true
disallow_non_arraykey_keys=true
disallow_unsafe_comparisons=true
decl_override_require_hint=true
disable_xhp_children_declarations=true
check_xhp_attribute=true
enable_experimental_tc_features=shape_field_check,sealed_classes,reified_generics
allowed_decl_fixme_codes=1002,2053,4030,4035,4045,4047,4101,4323
allowed_fixme_codes_strict=1002,2011,2049,2050,2053,4005,4006,4026,4027,4030,4035,4045,4047,4051,4053,4057,4063,4064,4067,4101,4104,4106,4107,4108,4110,4112,4128,4135,4165,4188,4193,4240,4251,4281,4297,4323,4324,4347,4371
allowed_fixme_codes_strict=1002,2011,2049,2050,2053,4005,4006,4026,4027,4030,4035,4045,4047,4051,4053,4057,4063,4064,4067,4101,4104,4106,4107,4108,4110,4112,4128,4135,4165,4188,4193,4240,4251,4281,4297,4314,4323,4324,4347,4371
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
- docker
env:
matrix:
- HHVM_VERSION=4.68-latest
- HHVM_VERSION=4.73-latest
global:
- secure: LoQU9i44IKyQGx7+i/d1do+H/CLvC3a8UO668E/AgWG8z+1gnCadDbUfFXHDV20cXN+7wFZXs+qr9BfI/iiiQmG2uHs+iYo6svujwjPqhbGlIFkUkPYQHW1dQg8f0Bj1q+OgOB7zNO6CJj6njXgciOAXZizhIdhfIIqMGQNfLlJlnk2hzrQmQVc4Pqce1eV8tsUjoWcz3vtjCId8xcS9kSDzQFbsRv3pule23WseGqbPuoWVFazHU/BGSIF/QnO7OTTw8p9/fItmoNBf6zGHZqHBklEfRRWgg8iV064u92vp1aKeJHpYhOBbOBe7bzjXsMAtjUgUEAXf58A0clLDo+l6uxtsHKAxalCv4ulLrVLTraCK5HItrA3fnB1AGofJUDKRe6y2AMaqhGm0vmEsKF0ooTCMQ3MvatRm5o7UtrVwOabGie6BEctnLXDbIgcBKOZk7led3Mh4UW68s/ciiE2cgCIkNgxDoNytoZozQsXPcA87VqUkypX2RacLrH/JIBy+vZAsJvUCnsrDzsDuMqeWuNw27VKL3CjucvzEevIC3nV+ZfC0e4K6UJetb6kPRIVsfS2E6JIg/SKd2aIOmTxlD28XbDiMiQRh3lLkhuegTu/QVPt9bgvSnvDyOsKoAbmZRJHDhePmyzcavKPtdP02xF/2BPTu9Y/9czIQnxA=
- secure: KjiRypAiRl0tvxAq66fneIfHY5lZI5EVDyDf/m2GSrsoMIMFDNeSCkvWuq5UzJjk2NWvXzSgoZZHod1yIRl+KiVqRqmbF11QnZffd8TfDAY8qf/zrinnP+Jw/Vzy9g5xlMNM+ncTijaWXYlqkEYSKGJxTaARymHbqSTtS+G14HyJ6yPRDPJkr+Q2Xvw0mQnNPQshqzISb2emdEpO/Fowu2ti8DD7jaFYakPBV1gndcW1TFLYMFE1R8qrWcPP+ntcqWAQA0nN+xS/ugH/cDxq+RfePz83egtph43l3S3lzSP2CVCEhIAiMvkqN+IsHKoIXZ88L4MI2pIyA4Wt1iVmITSjD9RDg3f6OJ107uo/htkGRKulWs3XPzabMftBp8ATygpUwb2yr3rRUDV+R8m56gaiDGi0zQoxSpPo/bCl6T6jhS6of86ow6OVkdak0F+83PFAkmS+C+ekJP/0XQrnyRY9+iWKcIzZbVMRD1gpavJBD2gCrXgwtORumHkTzFYEF2vqjvt/BqxvwnwXWry5E5lEIk79CmENDulWfBBMBa/LdIkd0hv7Mr8t76bu+lj7AP6UEJIB+9odYZnaKrKpOkC4frdaOJZDzK2ArBhIKNUbL4xP34xBnvjuWyFoqTMMLBxxOjW8uVlX74SMbfq6Gg2o0A9xY+l1Vb9sNqbcKjY=
Expand Down
1 change: 1 addition & 0 deletions DOCSITE_REV
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1fa47f258c6b68f8ec01899aa82fd6ffa0957109
2 changes: 1 addition & 1 deletion api-examples/class.HH.Map/toDArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ function main(): void {

$array = $m->toDArray();

\var_dump(\is_array($array));
\var_dump(\HH\is_any_array($array));
\var_dump($array);
}
2 changes: 1 addition & 1 deletion api-examples/class.HH.Map/toKeysArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

$keys_array = $m->toKeysArray();

var_dump(is_array($keys_array));
var_dump(\HH\is_any_array($keys_array));
var_dump($keys_array);
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

$array = $m->toValuesArray();

var_dump(is_array($array));
var_dump(\HH\is_any_array($array));
var_dump($array);
2 changes: 1 addition & 1 deletion api-examples/class.HH.Pair/toVArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function main(): void {

$array = $p->toVArray();

\var_dump(\is_array($array));
\var_dump(\HH\is_any_array($array));
\var_dump($array);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

$array = $p->toValuesArray();

var_dump(is_array($array));
var_dump(\HH\is_any_array($array));
var_dump($array);
2 changes: 1 addition & 1 deletion api-examples/class.HH.Set/toDArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function run() {

$array = $s->toDArray();

\var_dump(\is_array($array));
\var_dump(\HH\is_any_array($array));
\var_dump($array);
}
2 changes: 1 addition & 1 deletion api-examples/class.HH.Set/toVArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function run() {

$array = $s->toVArray();

\var_dump(\is_array($array));
\var_dump(\HH\is_any_array($array));
\var_dump($array);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

$array = $s->toValuesArray();

var_dump(is_array($array));
var_dump(\HH\is_any_array($array));
var_dump($array);
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

$keys_array = $v->toKeysArray();

var_dump(is_array($keys_array));
var_dump(\HH\is_any_array($keys_array));
var_dump($keys_array);
2 changes: 1 addition & 1 deletion api-examples/class.HH.Vector/toVArray/001-basic-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function main(): void {

$array = $v->toVArray();

\var_dump(\is_array($array));
\var_dump(\HH\is_any_array($array));
\var_dump($array);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

$array = $v->toValuesArray();

var_dump(is_array($array));
var_dump(\HH\is_any_array($array));
var_dump($array);
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"require": {
"facebook/xhp-lib": "^3.1.1",
"hhvm": "4.68.*",
"usox/hackttp": "*",
"hhvm/hhvm-autoload": "^2.0|^3.0",
"facebook/xhp-lib": "^4.0",
"hhvm": "4.73.*",
"usox/hackttp": "dev-master",
"hhvm/hhvm-autoload": "^3.0",
"hhvm/type-assert": "^4.0",
"facebook/hack-codegen": "^4.0",
"facebook/hack-router-codegen": ">=0.14 <1.0",
Expand All @@ -17,6 +17,7 @@
"hhvm/hhast": "^4.0",
"facebook/definition-finder": "^2.0.0",
"hhvm/hacktest": "^2.0",
"usox/hackmock": "dev-master",
"facebook/fbexpect": "^2.6.1"
}
}
Loading