-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error when activating plugin: Cannot use reserved class name 'RemoteDataBlocks\REST\true' #43
Comments
Hi, @arunsathiya. Thanks so much for giving the Remote Data Blocks plugin a try! Please note that it’s still in early stages of development and not yet suitable for production use, but we’re really glad you’ve taken it for a spin and uncovered this issue. It looks like that error was caused by the return type declaration here:
Per https://www.php.net/manual/en/language.types.declarations.php, support for the literal type true was only added in PHP 8.2. We’ll update the declaration to allow this to work in 8.1 as well and add some testing to catch this sort of thing in the future (#44). In the meantime, please let us know if you give it a try in 8.2+ and have any feedback. |
Thanks for sharing that information, @jblz—great to see it being improved. I could successfully install on PHP 8.2+, and I configured Airtable as a source under |
@arunsathiya I appreciate you following up. The UI for configuring data sources is not yet hooked into the block registration piece. Some of that work has been shared in #17, but it's not quite ready yet. For now, the data sources have to be hard-coded in a companion plugin. Here are a couple of examples: Cheers. |
@arunsathiya really appreciate the early engagement. Just so you're aware, we've just gotten our documentation site online, but there's not much content yet (and we're working on a real design). Through the rest of September you should start seeing more content show up there and the API and workflows will solidify a bit as part of that process. Please keep sending us any issues or feedback. And also feel free to contribute if you're so inclined, we'd be glad to take a look at any PRs. |
Following README instructions, I tried activating this plugin on a dev site, but I get the following error upon clicking
Activate
button:The text was updated successfully, but these errors were encountered: