Skip to content

Add types and support 8.4 #9

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

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Add types and support 8.4 #9

merged 1 commit into from
Mar 27, 2025

Conversation

nickdnk
Copy link
Owner

@nickdnk nickdnk commented Mar 16, 2025

This is a fairly large refactor. I have:

  1. Added types to everything I could find within the scope of PHP 8.1.
  2. Added way more properties to known objects (but this would require some effort/help from others as the Graph API is huge).
  3. Added support for properly casting arrays and edges to their correct GraphNode subclasses.
  4. Remove a lot of legacy things, such as a custom autoload.php, PHP 5.5 BC todos, outdated documentation
  5. Removed "helper" methods that would duplicate all the type-casting since I added way more objects/types.

I will be releasing this as a 8.0.0-rc1 and have it collect some feedback. If you just use this to "log in with Facebook" it is very unlikely that you would need to change anything, but please see the changelog for details.

@nickdnk nickdnk mentioned this pull request Mar 16, 2025
@nickdnk nickdnk added the help wanted Extra attention is needed label Mar 20, 2025
@nickdnk nickdnk self-assigned this Mar 20, 2025
@nickdnk nickdnk merged commit 63caaa2 into master Mar 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant