facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

[6.0] Add type hints to code base. #1144

Closed Girgias closed 10 months ago

Girgias commented 5 years ago

Added parameter type hints and return types when possible. To do so needed to change all ETags to empty strings and stop accepting NULL, same for some other parameters used in the constructor of Facebook\Request

Most of these are based on the doc blocks and adjustement made for tests to pass green (other than the recurring Facebook\Tests\Test::testPaginationReturnsProperResponse test failure which seems to be related to some Graph API changes on Facebook's side.